From 573a6134b20510cf756f0c15d65243732dd5cf59 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 17 Jun 2015 22:36:24 -0700 Subject: [PATCH] Remove redundant !ok for map --- pkg/iodine/iodine.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/iodine/iodine.go b/pkg/iodine/iodine.go index 5dd3b4490..481a79339 100644 --- a/pkg/iodine/iodine.go +++ b/pkg/iodine/iodine.go @@ -88,11 +88,8 @@ func GetGlobalState() map[string]string { // GetGlobalStateKey - get value for key from globalState struct func GetGlobalStateKey(k string) string { globalState.RLock() - result, ok := globalState.m[k] + result, _ := globalState.m[k] globalState.RUnlock() - if !ok { - return "" - } return result }