From a7b8cc8fe31bdd117e7484ff705f160e08063f05 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Mon, 5 Nov 2018 11:20:46 +0100 Subject: [PATCH] Do not clear out a previous set state when refreshing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the case when no state existed remotely and a new one was created locally, we don’t want to blow away the new local state when refreshing. --- state/remote/state.go | 1 - 1 file changed, 1 deletion(-) diff --git a/state/remote/state.go b/state/remote/state.go index 6101e82f8..5ead38e82 100644 --- a/state/remote/state.go +++ b/state/remote/state.go @@ -69,7 +69,6 @@ func (s *State) refreshState() error { // no remote state is OK if payload == nil { s.readState = nil - s.state = nil s.lineage = "" s.serial = 0 return nil