Skip to content

Commit

Permalink
Merge pull request #4492 from jwcesign/VarDeclarations
Browse files Browse the repository at this point in the history
cleanup: enable revive(var-declaration rule) checking
  • Loading branch information
karmada-bot committed Jan 9, 2024
2 parents caf34c6 + 367db18 commit 43c3e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ linters-settings:
- name: dot-imports
- name: errorf
- name: exported
- name: var-declaration
staticcheck:
checks:
- all
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/federatedhpa/federatedhpa_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var (
// errSpec is used to determine if the error comes from the spec of HPA object in reconcileAutoscaler.
// All such errors should have this error as a root error so that the upstream function can distinguish spec errors from internal errors.
// e.g., fmt.Errorf("invalid spec%w", errSpec)
errSpec error = errors.New("")
errSpec = errors.New("")
)

// FHPAController is to sync FederatedHPA.
Expand Down

0 comments on commit 43c3e33

Please sign in to comment.