Skip to content

Commit

Permalink
Use any instead of empty value, but treat empty as any
Browse files Browse the repository at this point in the history
  • Loading branch information
denisvmedia committed Sep 16, 2023
1 parent 12c18f6 commit db8f9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rule/enforce-map-style.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db8f9d3

Please sign in to comment.