loggers: Omit map nil check

This commit is contained in:
Bjørn Erik Pedersen 2024-08-13 20:10:43 +02:00
parent a99716bf04
commit b2d4f67a88
No known key found for this signature in database

View file

@ -110,7 +110,7 @@ func New(opts Options) Logger {
logHandler = newStopHandler(logOnce, logHandler) logHandler = newStopHandler(logOnce, logHandler)
} }
if opts.SuppressStatements != nil && len(opts.SuppressStatements) > 0 { if len(opts.SuppressStatements) > 0 {
logHandler = newStopHandler(newSuppressStatementsHandler(opts.SuppressStatements), logHandler) logHandler = newStopHandler(newSuppressStatementsHandler(opts.SuppressStatements), logHandler)
} }