From 4cb9394a978af75794d43accc231b6649f2884bc Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Tue, 19 Sep 2017 01:08:30 -0700 Subject: Fix lint errors (#2547) --- models/login_source.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'models/login_source.go') diff --git a/models/login_source.go b/models/login_source.go index 186a5e0514..c43afd58b7 100644 --- a/models/login_source.go +++ b/models/login_source.go @@ -498,10 +498,7 @@ func SMTPAuth(a smtp.Auth, cfg *SMTPConfig) error { } if ok, _ := c.Extension("AUTH"); ok { - if err = c.Auth(a); err != nil { - return err - } - return nil + return c.Auth(a) } return ErrUnsupportedLoginType } -- cgit v1.2.3