No need for nil check on map (#143)

This commit is contained in:
Pieter Noordhuis 2022-12-15 21:28:27 +01:00 committed by GitHub
parent 24a3b90713
commit 1a9a431b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}