Remove redundant !ok for map

master
Harshavardhana 9 years ago
parent 3842a57f52
commit 573a6134b2
  1. 5
      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
}

Loading…
Cancel
Save