Skip to content

Commit

Permalink
Added lint ignore for shutdown recover
Browse files Browse the repository at this point in the history
Signed-off-by: Corbin Phelps <corbin.phelps@bluemedora.com>
  • Loading branch information
Corbin Phelps committed Mar 2, 2022
1 parent df4dab0 commit b8cbfa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (col *Collector) Shutdown() {
state := col.GetState()
if state == Running || state == Starting {
defer func() {
recover()
recover() // nolint:errcheck
}()
close(col.shutdownChan)
}
Expand Down

0 comments on commit b8cbfa2

Please sign in to comment.