Skip to content

Commit

Permalink
loggers: Omit map nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 13, 2024
1 parent a99716b commit b2d4f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/loggers/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func New(opts Options) Logger {
logHandler = newStopHandler(logOnce, logHandler)
}

if opts.SuppressStatements != nil && len(opts.SuppressStatements) > 0 {
if len(opts.SuppressStatements) > 0 {
logHandler = newStopHandler(newSuppressStatementsHandler(opts.SuppressStatements), logHandler)
}

Expand Down

0 comments on commit b2d4f67

Please sign in to comment.