Skip to content

Commit

Permalink
refactor: use constant for 200 http status code (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockopp authored Feb 2, 2021
1 parent 333c870 commit dbeb3bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions router/middleware/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ func Options(c *gin.Context) {
c.Header("Access-Control-Allow-Headers", "authorization, origin, content-type, accept")
c.Header("Allow", "HEAD,GET,POST,PUT,PATCH,DELETE,OPTIONS")
c.Header("Content-Type", "application/json")
// nolint: gomnd // ignore magic number
c.AbortWithStatus(200)
c.AbortWithStatus(http.StatusOK)
}
}

Expand Down

0 comments on commit dbeb3bd

Please sign in to comment.