Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 26, 2023
1 parent 63865ff commit 93bbefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/http/controllers/setting_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (r *SettingController) Save(ctx http.Context) http.Response {
email := ctx.Request().Input("email")
password := ctx.Request().Input("password")

if regexp.MustCompile(`^/[^/]*[^/]$`).MatchString(entrance) == false {
if !regexp.MustCompile(`^/[^/]*[^/]$`).MatchString(entrance) {
return Error(ctx, http.StatusUnprocessableEntity, "入口格式错误")
}

Expand Down

0 comments on commit 93bbefd

Please sign in to comment.