Skip to content

Commit

Permalink
linter overlord
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Oct 10, 2023
1 parent ae5eb9e commit b1c4198
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/build/cancel.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ func CancelBuild(c *gin.Context) {
return
}

c.JSON(resp.StatusCode, b)

b.SetError(fmt.Sprintf("build was canceled by %s", user.GetName()))

b, err = database.FromContext(c).UpdateBuild(ctx, b)
if err != nil {
retErr := fmt.Errorf("unable to update status for build %s: %w", entry, err)
Expand All @@ -180,6 +179,8 @@ func CancelBuild(c *gin.Context) {
return
}

c.JSON(resp.StatusCode, b)

return
}
}
Expand Down

0 comments on commit b1c4198

Please sign in to comment.