mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
loggers: Omit map nil check
This commit is contained in:
parent
a99716bf04
commit
b2d4f67a88
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue