Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Dohrmann <[email protected]>
Co-authored-by: Paul Meyer <[email protected]>
  • Loading branch information
3 people authored Aug 1, 2024
1 parent 7e2a615 commit 856790c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ func generatePolicies(ctx context.Context, flags *generateFlags, yamlPaths []str

runner, err := genpolicy.New(flags.policyPath, flags.settingsPath, flags.genpolicyCachePath)
if err != nil {
return fmt.Errorf("perparing genpolicy: %w", err)
return fmt.Errorf("preparing genpolicy: %w", err)
}

defer func() {
if err := runner.Teardown(); err != nil {
logger.Warn("cleanup failed", "err", err)
logger.Warn("Cleanup failed", "err", err)
}
}()

Expand Down

0 comments on commit 856790c

Please sign in to comment.