Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Feb 15, 2024
1 parent c30e2c5 commit c3eb922
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ linters:
- wsl # too many empty lines makes methods too long
- wrapcheck # forces to wrap errors everywhere
- lll # Just useless in the most cases
- perfsprint # to keep errors consistent


issues:
Expand Down
2 changes: 1 addition & 1 deletion pkg/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ func ValidateNamespaces(str string) ([]string, error) {
m[ns] = struct{}{}
}

var list []string
list := make([]string, 0, len(m))
for k := range m {
list = append(list, k)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubernetes/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type Client struct {
customClientSet *customresources.Client
apiextClientset apiextv1clientset.Interface
dynamicClientset dynamic.Interface
dbClusterClient *database.DBClusterClient
dbClusterClient *database.DBClusterClient //nolint:structcheck
rcLock *sync.Mutex
restConfig *rest.Config
namespace string
Expand Down

0 comments on commit c3eb922

Please sign in to comment.