Empty string check (#1101)

This commit is contained in:
田欧
2017-09-28 11:22:35 -05:00
committed by Bo-Yi Wu
parent f7376f7c7f
commit 3b300929e8
5 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ var modeName = DebugMode
func init() {
mode := os.Getenv(ENV_GIN_MODE)
if len(mode) == 0 {
if mode == "" {
SetMode(DebugMode)
} else {
SetMode(mode)