Skip to content

Commit 9004d09

Browse files
author
Kate Osborn
committed
Remove redundant nil check
1 parent 5f5823e commit 9004d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/mode/static/state/dataplane/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ func buildLogging(g *graph.Graph) Logging {
991991
}
992992

993993
ngfProxy := g.Gateway.EffectiveNginxProxy
994-
if ngfProxy != nil && ngfProxy.Logging != nil {
994+
if ngfProxy.Logging != nil {
995995
if ngfProxy.Logging.ErrorLevel != nil {
996996
logSettings.ErrorLevel = string(*ngfProxy.Logging.ErrorLevel)
997997
}

0 commit comments

Comments
 (0)