diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-08-13 20:10:43 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-08-13 20:10:43 +0200 |
commit | b2d4f67a881ac55f9e47f57bbd81db621848a4ae (patch) | |
tree | 18dd318fb23894a2fb2cdd9ba4cf560e630343ff | |
parent | a99716bf046285e3955896d05fd29d0c5320843e (diff) | |
download | hugo-b2d4f67a881ac55f9e47f57bbd81db621848a4ae.tar.gz hugo-b2d4f67a881ac55f9e47f57bbd81db621848a4ae.zip |
loggers: Omit map nil check
-rw-r--r-- | common/loggers/logger.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/loggers/logger.go b/common/loggers/logger.go index 5b49e2b17..4e2f3ab21 100644 --- a/common/loggers/logger.go +++ b/common/loggers/logger.go @@ -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) } |