Skip to content

Commit

Permalink
linter again
Browse files Browse the repository at this point in the history
  • Loading branch information
c-f committed Dec 20, 2021
1 parent 02f310c commit 69d6641
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/runner/runner.go
Expand Up @@ -42,7 +42,11 @@ func New(options *Options) (*Runner, error) {
if err != nil {
return nil, err
}
watchFile(r.options.RulesFile, serverTCP.LoadTemplate)
watcher, err := watchFile(r.options.RulesFile, serverTCP.LoadTemplate)
if err != nil {
return nil, err
}
defer watcher.Close()

r.serverTCP = serverTCP
return &r, nil
Expand Down

0 comments on commit 69d6641

Please sign in to comment.