one unlock pls

This commit is contained in:
Jono MacDougall 2017-02-01 12:28:00 +00:00
parent 1479e926ef
commit 796905a6e9

View File

@ -23,11 +23,11 @@ var mutex = &sync.RWMutex{}
func ToDBName(name string) string { func ToDBName(name string) string {
mutex.RLock() mutex.RLock()
if v, ok := smap[name]; ok { v, ok := smap[name]
mutex.RUnlock() mutex.RUnlock()
if ok {
return v return v
} }
mutex.RUnlock()
value := commonInitialismsReplacer.Replace(name) value := commonInitialismsReplacer.Replace(name)
buf := bytes.NewBufferString("") buf := bytes.NewBufferString("")