From a71adb08e01cde5e1c5198e4746cf3db3cda4d13 Mon Sep 17 00:00:00 2001 From: Muhammad S <841955+mhd-sln@users.noreply.github.com> Date: Sun, 27 Nov 2022 12:43:53 +0200 Subject: [PATCH] [MM-48409] lint and vet fix --- api4/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api4/user.go b/api4/user.go index 7cda65e422..9d3ca204d2 100644 --- a/api4/user.go +++ b/api4/user.go @@ -1962,12 +1962,12 @@ func loginCWS(c *Context, w http.ResponseWriter, r *http.Request) { c.App.AttachSessionCookies(c.AppContext, w, r) redirectURL := *c.App.Config().ServiceSettings.SiteURL - if len(campaign) > 0 { + if campaign != "" { if url, ok := campaignToURL[campaign]; ok { redirectURL += url } } - http.Redirect(w, r, redirectURL , http.StatusFound) + http.Redirect(w, r, redirectURL, http.StatusFound) } func logout(c *Context, w http.ResponseWriter, r *http.Request) {