From 1a9a431b971a43b1c81019e122621d0c5617c7a9 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 15 Dec 2022 21:28:27 +0100 Subject: [PATCH] No need for nil check on map (#143) --- bundle/config/mutator/default_environment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/config/mutator/default_environment.go b/bundle/config/mutator/default_environment.go index 6e7ecdeb..448b6299 100644 --- a/bundle/config/mutator/default_environment.go +++ b/bundle/config/mutator/default_environment.go @@ -26,7 +26,7 @@ func (m *defineDefaultEnvironment) Name() string { func (m *defineDefaultEnvironment) Apply(_ context.Context, b *bundle.Bundle) ([]bundle.Mutator, error) { // Nothing to do if the configuration has at least 1 environment. - if b.Config.Environments != nil || len(b.Config.Environments) > 0 { + if len(b.Config.Environments) > 0 { return nil, nil }