aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-08-13 20:10:43 +0200
committerBjørn Erik Pedersen <[email protected]>2024-08-13 20:10:43 +0200
commitb2d4f67a881ac55f9e47f57bbd81db621848a4ae (patch)
tree18dd318fb23894a2fb2cdd9ba4cf560e630343ff
parenta99716bf046285e3955896d05fd29d0c5320843e (diff)
downloadhugo-b2d4f67a881ac55f9e47f57bbd81db621848a4ae.tar.gz
hugo-b2d4f67a881ac55f9e47f57bbd81db621848a4ae.zip
loggers: Omit map nil check
-rw-r--r--common/loggers/logger.go2
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)
}