2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 16:10:59 +08:00

fix: lint

This commit is contained in:
耗子
2023-10-26 12:37:35 +08:00
parent 63865ff1da
commit 93bbefd40e

View File

@@ -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, "入口格式错误")
}