Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Nov 28, 2022
1 parent dc16b30 commit 1c455df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/commands/artifact/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ func Run(ctx context.Context, opts flag.Options, targetKind TargetKind) (err err
return xerrors.Errorf("report error: %w", err)
}

if reportPassed {
os.Exit(0)
} else {
os.Exit(1)
if !reportPassed {
defer os.Exit(1)
}

return nil
Expand Down

0 comments on commit 1c455df

Please sign in to comment.