Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed Sep 4, 2024
1 parent 1f1ef8c commit dae3c8f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bundle/config/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,12 +468,10 @@ func rewriteShorthands(v dyn.Value) (dyn.Value, error) {
// and configuration is not merged yet.
typeV, err := dyn.GetByPath(v, p.Append(dyn.Key("type")))
if err == nil && typeV.MustString() == "complex" {
if typeV.MustString() == "complex" {
return dyn.NewValue(map[string]dyn.Value{
"type": typeV,
"default": variable,
}, variable.Locations()), nil
}
return dyn.NewValue(map[string]dyn.Value{
"type": typeV,
"default": variable,
}, variable.Locations()), nil
}

// If it's a shorthand, rewrite it to a full variable definition.
Expand Down

0 comments on commit dae3c8f

Please sign in to comment.