Skip to content

Commit

Permalink
Bump linter to 1.52.2
Browse files Browse the repository at this point in the history
Signed-off-by: Faisal Memon <[email protected]>
  • Loading branch information
faisal-memon committed Jan 11, 2024
1 parent a9e9743 commit 889e9c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ else
endif
go_path := PATH="$(go_bin_dir):$(PATH)"

golangci_lint_version = v1.51.1
golangci_lint_version = v1.52.2
golangci_lint_dir = $(build_dir)/golangci_lint/$(golangci_lint_version)
golangci_lint_bin = $(golangci_lint_dir)/golangci-lint
golangci_lint_cache = $(golangci_lint_dir)/cache
Expand Down
11 changes: 2 additions & 9 deletions pkg/sidecar/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,7 @@ func (s *Sidecar) dumpBundles(svidResponse *workloadapi.X509Context) error {
return err
}

if err := writeCerts(svidBundleFile, bundles); err != nil {
return err
}

return nil
return writeCerts(svidBundleFile, bundles)
}

func (s *Sidecar) writeJSON(fileName string, certs map[string]interface{}) error {
Expand All @@ -251,11 +247,8 @@ func (s *Sidecar) writeJSON(fileName string, certs map[string]interface{}) error
}

jsonPath := path.Join(s.config.CertDir, fileName)
if err = os.WriteFile(jsonPath, file, os.ModePerm); err != nil {
return err
}

return nil
return os.WriteFile(jsonPath, file, os.ModePerm)
}

func (s *Sidecar) updateJWTBundle(jwkSet *jwtbundle.Set) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sidecar/util_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ func (s *Sidecar) SignalProcess() error {
return nil
}

func validateOSConfig(c *Config) error {
func validateOSConfig(_ *Config) error {
return nil
}

0 comments on commit 889e9c0

Please sign in to comment.