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 {
mutex.RLock()
if v, ok := smap[name]; ok {
v, ok := smap[name]
mutex.RUnlock()
if ok {
return v
}
mutex.RUnlock()
value := commonInitialismsReplacer.Replace(name)
buf := bytes.NewBufferString("")