Skip to content

Commit d28906b

Browse files
committed
lint
1 parent 9ca5240 commit d28906b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

routers/api/v1/admin/user.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ func RenameUser(ctx *context.APIContext) {
453453
// schema:
454454
// "$ref": "#/definitions/RenameUserOption"
455455
// responses:
456+
// "204":
457+
// "$ref": "#/responses/empty"
456458
// "403":
457459
// "$ref": "#/responses/forbidden"
458460
// "422":
@@ -484,5 +486,6 @@ func RenameUser(ctx *context.APIContext) {
484486
}
485487

486488
log.Trace("User name changed: %s -> %s", oldName, newName)
487-
ctx.Status(http.StatusOK)
489+
490+
ctx.Status(http.StatusNoContent)
488491
}

templates/swagger/v1_json.tmpl

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)