Skip to content

Commit

Permalink
🎨 Improve the response status code of kernel API /api/file/getFile #…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Aug 30, 2023
1 parent baa3ef0 commit cf5948d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/api/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func getFile(c *gin.Context) {
ret := gulu.Ret.NewResult()
arg, ok := util.JsonArg(c, ret)
if !ok {
ret.Code = -1
c.JSON(http.StatusAccepted, ret)
return
}
Expand Down

0 comments on commit cf5948d

Please sign in to comment.