From c5e8cb25caa39ed018ede5270e1566e8f7448396 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:57:24 -0500 Subject: simplify things (#7735) --- model/utils.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'model/utils.go') 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 { -- cgit v1.2.3-1-g7c22