We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d83324 + d4614ed commit 4eb2d27Copy full SHA for 4eb2d27
.golangci.yml
@@ -72,7 +72,6 @@ linters:
72
# Will fix the issues in the following PRs.
73
# Issue: https://github.com/karmada-io/karmada/issues/6273.
74
- "-ST1011"
75
- - "-QF1001"
76
- "-ST1000"
77
exclusions:
78
generated: lax
pkg/karmadactl/get/get.go
@@ -250,7 +250,7 @@ func (g *CommandGetOptions) Validate(cmd *cobra.Command) error {
250
return fmt.Errorf("--show-labels option cannot be used with %s printer", outputOption)
251
}
252
253
- if g.OutputWatchEvents && !(g.Watch || g.WatchOnly) {
+ if g.OutputWatchEvents && !g.Watch && !g.WatchOnly {
254
return fmt.Errorf("--output-watch-events option can only be used with --watch or --watch-only")
255
256
0 commit comments