File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
)
26
26
27
27
const (
28
- DefaultValue = "*"
28
+ All = "*"
29
29
30
30
disablePrefix = "-"
31
31
)
@@ -70,7 +70,7 @@ func (s *Switches) Set(val string) error {
70
70
// Validate that all specified controllers are known
71
71
for _ , v := range settings {
72
72
trimmed := strings .TrimPrefix (v , disablePrefix )
73
- if _ , ok := s .settings [trimmed ]; trimmed != DefaultValue && ! ok {
73
+ if _ , ok := s .settings [trimmed ]; trimmed != All && ! ok {
74
74
return fmt .Errorf ("unknown item: %s" , trimmed )
75
75
}
76
76
}
@@ -120,7 +120,7 @@ func (s *Switches) setSettings(settings []string) {
120
120
121
121
var isDefault bool
122
122
for _ , v := range settings {
123
- if v == DefaultValue {
123
+ if v == All {
124
124
isDefault = true
125
125
break
126
126
}
@@ -133,7 +133,7 @@ func (s *Switches) setSettings(settings []string) {
133
133
}
134
134
135
135
for _ , v := range settings {
136
- if v == DefaultValue {
136
+ if v == All {
137
137
continue
138
138
}
139
139
s .settings [strings .TrimPrefix (v , disablePrefix )] = ! strings .HasPrefix (v , disablePrefix )
You can’t perform that action at this time.
0 commit comments