one unlock pls
This commit is contained in:
parent
1479e926ef
commit
796905a6e9
6
utils.go
6
utils.go
@ -23,11 +23,11 @@ var mutex = &sync.RWMutex{}
|
||||
|
||||
func ToDBName(name string) string {
|
||||
mutex.RLock()
|
||||
if v, ok := smap[name]; ok {
|
||||
mutex.RUnlock()
|
||||
v, ok := smap[name]
|
||||
mutex.RUnlock()
|
||||
if ok {
|
||||
return v
|
||||
}
|
||||
mutex.RUnlock()
|
||||
|
||||
value := commonInitialismsReplacer.Replace(name)
|
||||
buf := bytes.NewBufferString("")
|
||||
|
Loading…
x
Reference in New Issue
Block a user