Skip to content

Commit

Permalink
Use FormatInt instead of Sprint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted committed Nov 16, 2021
1 parent 48ccd32 commit 35a5986
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routers/web/admin/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package admin

import (
"fmt"
"net/http"
"strconv"
"strings"
Expand Down Expand Up @@ -188,7 +187,7 @@ func NewUserPost(ctx *context.Context) {
}

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

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

0 comments on commit 35a5986

Please sign in to comment.