Skip to content

Commit 35a5986

Browse files
author
Gusted
committed
Use FormatInt instead of Sprint
- As per go-gitea#17661 (comment)
1 parent 48ccd32 commit 35a5986

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/web/admin/users.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package admin
77

88
import (
9-
"fmt"
109
"net/http"
1110
"strconv"
1211
"strings"
@@ -188,7 +187,7 @@ func NewUserPost(ctx *context.Context) {
188187
}
189188

190189
ctx.Flash.Success(ctx.Tr("admin.users.new_success", u.Name))
191-
ctx.Redirect(setting.AppSubURL + "/admin/users/" + fmt.Sprint(u.ID))
190+
ctx.Redirect(setting.AppSubURL + "/admin/users/" + strconv.FormatInt(u.ID, 10))
192191
}
193192

194193
func prepareUserInfo(ctx *context.Context) *models.User {

0 commit comments

Comments
 (0)