Skip to content

Commit

Permalink
Merge branch 'main' into pidfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kfox1111 authored Jan 16, 2024
2 parents 43ffb8d + 42da3df commit e689b7f
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 @@ -100,7 +100,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 @@ -261,11 +261,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 @@ -275,11 +271,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 e689b7f

Please sign in to comment.