Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
KN4CK3R committed Jan 8, 2024
1 parent 9ca5240 commit d28906b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion routers/api/v1/admin/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ func RenameUser(ctx *context.APIContext) {
// schema:
// "$ref": "#/definitions/RenameUserOption"
// responses:
// "204":
// "$ref": "#/responses/empty"
// "403":
// "$ref": "#/responses/forbidden"
// "422":
Expand Down Expand Up @@ -484,5 +486,6 @@ func RenameUser(ctx *context.APIContext) {
}

log.Trace("User name changed: %s -> %s", oldName, newName)
ctx.Status(http.StatusOK)

ctx.Status(http.StatusNoContent)
}
3 changes: 3 additions & 0 deletions templates/swagger/v1_json.tmpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d28906b

Please sign in to comment.