Skip to content

Commit

Permalink
Fix linter directive
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Jan 26, 2024
1 parent 2950d98 commit 6904395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions v2/app/BlockCompressor.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,8 @@ func (this *BlockCompressor) Compress() (int, uint64) {

func notifyBCListeners(listeners []kanzi.Listener, evt *kanzi.Event) {
defer func() {
//nolint
//lint:ignore SA9003 Ignore panics in listeners
if r := recover(); r != nil {
//lint:ignore SA9003
// Ignore panics in listeners
}
}()

Expand Down
4 changes: 1 addition & 3 deletions v2/app/BlockDecompressor.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,8 @@ func (this *BlockDecompressor) Decompress() (int, uint64) {

func notifyBDListeners(listeners []kanzi.Listener, evt *kanzi.Event) {
defer func() {
//nolint
//lint:ignore SA9003 Ignore panics in listeners
if r := recover(); r != nil {
//lint:ignore SA9003
// Ignore panics in listeners
}
}()

Expand Down

0 comments on commit 6904395

Please sign in to comment.