Do not clear out a previous set state when refreshing

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.
This commit is contained in:
Sander van Harmelen 2018-11-05 11:20:46 +01:00
parent b7cf7737f6
commit a7b8cc8fe3
1 changed files with 0 additions and 1 deletions

View File

@ -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