Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
appease the linting gods
Browse files Browse the repository at this point in the history
Signed-off-by: Oscar Ward <[email protected]>
  • Loading branch information
Oscar Ward committed Oct 13, 2023
1 parent a171577 commit d18fb85
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/vcs/vcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,5 @@ func gitCheckout(ctx context.Context, workdir, revision string) (err error) {
func gitDirty(ctx context.Context, workdir string) bool {
args := []string{"-C", workdir, "diff", "--quiet"}
cmd := exec.CommandContext(ctx, "git", args...)
cmdErr := cmd.Run()
if cmdErr != nil {
return true
}
return false
return cmd.Run() != nil
}

0 comments on commit d18fb85

Please sign in to comment.