mirror of
https://github.com/minio/minio.git
synced 2024-12-26 23:25:54 -05:00
Merge pull request #655 from harshavardhana/pr_out_remove_redundant_ok_for_map
Remove redundant !ok for map
This commit is contained in:
commit
285b1cc5d8
@ -88,11 +88,8 @@ func GetGlobalState() map[string]string {
|
|||||||
// GetGlobalStateKey - get value for key from globalState struct
|
// GetGlobalStateKey - get value for key from globalState struct
|
||||||
func GetGlobalStateKey(k string) string {
|
func GetGlobalStateKey(k string) string {
|
||||||
globalState.RLock()
|
globalState.RLock()
|
||||||
result, ok := globalState.m[k]
|
result, _ := globalState.m[k]
|
||||||
globalState.RUnlock()
|
globalState.RUnlock()
|
||||||
if !ok {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user