Skip to content

Commit 4eb2d27

Browse files
authored
Merge pull request #6297 from seanlaii/fix-QF1001
Fix lint issue QF1001
2 parents 6d83324 + d4614ed commit 4eb2d27

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ linters:
7272
# Will fix the issues in the following PRs.
7373
# Issue: https://github.com/karmada-io/karmada/issues/6273.
7474
- "-ST1011"
75-
- "-QF1001"
7675
- "-ST1000"
7776
exclusions:
7877
generated: lax

pkg/karmadactl/get/get.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func (g *CommandGetOptions) Validate(cmd *cobra.Command) error {
250250
return fmt.Errorf("--show-labels option cannot be used with %s printer", outputOption)
251251
}
252252
}
253-
if g.OutputWatchEvents && !(g.Watch || g.WatchOnly) {
253+
if g.OutputWatchEvents && !g.Watch && !g.WatchOnly {
254254
return fmt.Errorf("--output-watch-events option can only be used with --watch or --watch-only")
255255
}
256256

0 commit comments

Comments
 (0)