Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
chore: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
FoseFx committed Nov 6, 2022
1 parent d5caf2b commit a799ecb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions routes/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ func SendError(ctx *gin.Context, status int, err error) {
ctx.Abort()
}

// StatusResponse should give the caller feedback on the state of the task they submitted
type StatusResponse struct {
Ok bool
}

// SendOk sends a basic "OK" response
func SendOk(ctx *gin.Context) {
ctx.JSON(http.StatusOK, StatusResponse{Ok: true})
}

func HandleDBError(ctx *gin.Context, logCtx context.Context, err error) {
log.Ctx(logCtx).Warn().Err(err).Msg("db error occurred")
status := http.StatusBadRequest
Expand Down

0 comments on commit a799ecb

Please # to comment.