Skip to content

Commit

Permalink
update linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dixudx committed Sep 8, 2021
1 parent c78d16e commit b3adb04
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ lint: golangci-lint
-E deadcode \
-E unused \
-E varcheck \
-E ineffassign
-E ineffassign \
-E goimports \
-E gofmt \
-E misspell \
-E unparam \
-E unconvert \
-E govet \
-E errcheck \
-E structcheck

# Run mod tidy against code
.PHONY: tidy
Expand Down
5 changes: 4 additions & 1 deletion pkg/plugin/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ func (f *ClusternetGetter) ToRESTConfig() (*rest.Config, error) {
if err != nil {
return nil, err
}
setKubernetesDefaults(clientConfig)
err = setKubernetesDefaults(clientConfig)
if err != nil {
return nil, err
}

// apply Clusternet wrapper
clientConfig.Wrap(func(rt http.RoundTripper) http.RoundTripper {
Expand Down

0 comments on commit b3adb04

Please sign in to comment.