Skip to content

Commit

Permalink
Add return statement after sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
aniruddha2000 committed Jul 31, 2021
1 parent 94375cb commit 70ffb64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locksmithctl/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,13 @@ func waitForRebootWindow() (bool, error) {
dlog.Infof("Next window begins at %s and ends at %s", next.Start, next.End)
dlog.Infof("Waiting for %s to reboot.", sleeptime)
time.Sleep(sleeptime)
return true, nil
}
} else {
dlog.Info("No configured reboot window")
}

return true, nil
return false, nil
}

func (r rebooter) rebootAndSleep() {
Expand Down

0 comments on commit 70ffb64

Please sign in to comment.