summaryrefslogtreecommitdiffstats
path: root/model/utils.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-10-30 11:57:24 -0500
committerGitHub <noreply@github.com>2017-10-30 11:57:24 -0500
commitc5e8cb25caa39ed018ede5270e1566e8f7448396 (patch)
tree80f9f8957d4ff8458ecf9631135c916df25544bd /model/utils.go
parent63df41b91110bac06baffef87fe0c1952b47ac93 (diff)
downloadchat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.gz
chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.bz2
chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.zip
simplify things (#7735)
Diffstat (limited to 'model/utils.go')
-rw-r--r--model/utils.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/model/utils.go b/model/utils.go
index 01b24157a..e84d44f72 100644
--- a/model/utils.go
+++ b/model/utils.go
@@ -273,11 +273,7 @@ func GetServerIpAddress() string {
}
func IsLower(s string) bool {
- if strings.ToLower(s) == s {
- return true
- }
-
- return false
+ return strings.ToLower(s) == s
}
func IsValidEmail(email string) bool {