mirror of https://github.com/databricks/cli.git
No need for nil check on map (#143)
This commit is contained in:
parent
24a3b90713
commit
1a9a431b97
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue