From 93bbefd40e5e7c981f4788b820729cb74d9b7e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 26 Oct 2023 12:37:35 +0800 Subject: [PATCH] fix: lint --- app/http/controllers/setting_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/http/controllers/setting_controller.go b/app/http/controllers/setting_controller.go index d7545761..34436fbf 100644 --- a/app/http/controllers/setting_controller.go +++ b/app/http/controllers/setting_controller.go @@ -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, "入口格式错误") }