diff pkg/models/user.go @ 4847:4847ac70103a

Made staticcheck happy. - error strings should not end with punctuation or a newline (ST1005) - error strings should not be capitalized (ST1005)
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Nov 2019 11:54:20 +0100
parents 71b722809b2b
children b1b9b384540d
line wrap: on
line diff
--- a/pkg/models/user.go	Thu Nov 14 14:53:15 2019 +0100
+++ b/pkg/models/user.go	Mon Nov 18 11:54:20 2019 +0100
@@ -68,7 +68,7 @@
 			`:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]` +
 			`|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])`)
 
-	errNoEmailAddress = errors.New("Not a valid email address")
+	errNoEmailAddress = errors.New("not a valid email address")
 )
 
 // UnmarshalJSON ensures that the given string forms a valid email address.
@@ -99,7 +99,7 @@
 	return
 }
 
-var errNoValidUser = errors.New("Not a valid user")
+var errNoValidUser = errors.New("not a valid user")
 
 // IsValid checks if a given user name is valid.
 func (u UserName) IsValid() bool {
@@ -135,7 +135,7 @@
 		"waterway_admin",
 		"sys_admin",
 	}
-	errNoValidRole = errors.New("Not a valid role")
+	errNoValidRole = errors.New("not a valid role")
 )
 
 // Value implements the driver.Valuer interface.