Skip to content

Commit

Permalink
pkg/build/image_builder: chase err style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniini committed Mar 7, 2022
1 parent fa1e4f0 commit 3aba835
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/build/image_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ func (bc *Context) BuildImage() error {

// generate SBOM
if bc.SBOMPath != "" {
err = bc.GenerateSBOM()
if err != nil {
if err := bc.GenerateSBOM(); err != nil {
return fmt.Errorf("failed to generate SBOM: %w", err)
}
}
Expand Down

0 comments on commit 3aba835

Please sign in to comment.