diff --git a/rule/enforce-map-style.go b/rule/enforce-map-style.go index 689ff2dca..1a50f6d57 100644 --- a/rule/enforce-map-style.go +++ b/rule/enforce-map-style.go @@ -11,14 +11,14 @@ import ( type enforceMapStyleType string const ( - enforceMapStyleTypeAny enforceMapStyleType = "" + enforceMapStyleTypeAny enforceMapStyleType = "any" enforceMapStyleTypeMake enforceMapStyleType = "make" enforceMapStyleTypeLiteral enforceMapStyleType = "literal" ) func mapStyleFromString(s string) (enforceMapStyleType, error) { switch s { - case string(enforceMapStyleTypeAny): + case string(enforceMapStyleTypeAny), "": return enforceMapStyleTypeAny, nil case string(enforceMapStyleTypeMake): return enforceMapStyleTypeMake, nil