Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Dec 23, 2019
1 parent 3c218ed commit 3a73eea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/restart/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var (
ErrMalformedArgs = errors.New("malformed args")
)

// DefaultCheckDelay is a default delay for checking if a new instance is started successfully.
const DefaultCheckDelay = 5 * time.Second

// Context describes data required for restarting visor.
Expand Down Expand Up @@ -113,7 +114,7 @@ func (c *Context) start(path string) chan error {
}

args := c.args[1:]
cmd := exec.Command(normalizedPath, args...)
cmd := exec.Command(normalizedPath, args...) // nolint:gosec

if err := cmd.Start(); err != nil {
errCh <- err
Expand Down

0 comments on commit 3a73eea

Please sign in to comment.