Skip to content

Commit

Permalink
Make minor linter improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Dec 17, 2019
1 parent f6a2c0e commit 01ae1ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/restart/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (c *Context) Restart() error {
return err
case <-ticker.C:
c.infoLogger()("New instance started successfully, exiting")

if c.needsExit {
os.Exit(0)
}
Expand Down
1 change: 1 addition & 0 deletions pkg/restart/restart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func TestContext_SetCheckDelay(t *testing.T) {
require.Equal(t, DefaultCheckDelay, cc.checkDelay)

const oneSecond = 1 * time.Second

cc.SetCheckDelay(oneSecond)
require.Equal(t, oneSecond, cc.checkDelay)
}

0 comments on commit 01ae1ba

Please sign in to comment.