Skip to content

Commit

Permalink
fix mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Jul 20, 2023
1 parent ae60cbd commit bdd8a04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mock/server/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ func buildToken(c *gin.Context) {

if strings.EqualFold(b, "2") {
c.AbortWithStatusJSON(http.StatusBadRequest, "")

return
}

data := []byte(BuildTokenResp)
Expand All @@ -358,6 +360,8 @@ func buildExecutable(c *gin.Context) {
msg := fmt.Sprintf("unable to get build executable for build %s", b)

c.AbortWithStatusJSON(http.StatusInternalServerError, types.Error{Message: &msg})

return
}

data := []byte(BuildExecutableResp)
Expand Down

0 comments on commit bdd8a04

Please sign in to comment.