We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d13cbf0 + 363801a commit d6569d3Copy full SHA for d6569d3
.golangci.yml
@@ -139,6 +139,7 @@ linters-settings:
139
- dynamicFmtString
140
- emptyDecl
141
- emptyFallthrough
142
+ - emptyStringTest
143
- equalFold
144
- evalOrder
145
- exposedSyncMutex
@@ -186,7 +187,6 @@ linters-settings:
186
187
- unnecessaryDefer
188
- weakCond
189
- yodaStyleExpr
- # - emptyStringTest
190
# - hugeParam
191
# - importShadow
192
# - octalLiteral
cmd/crictl/events.go
@@ -51,7 +51,7 @@ var eventsCommand = &cli.Command{
51
52
switch format := c.String("output"); format {
53
case "json", "yaml":
54
- if len(c.String("template")) > 0 {
+ if c.String("template") != "" {
55
return fmt.Errorf("template can't be used with %q format", format)
56
}
57
case "go-template":
0 commit comments