mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-14 21:23:47 +08:00
发布v2.15.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -56,9 +56,7 @@ func RegisterEnums(key, label string, opts []*model.Option) {
|
||||
func SaveEnums(key, label string, opts []*model.Option) {
|
||||
eLock.Lock()
|
||||
defer eLock.Unlock()
|
||||
if _, ok := enumsOptions[key]; ok {
|
||||
delete(enumsOptions, key)
|
||||
}
|
||||
delete(enumsOptions, key)
|
||||
RegisterEnums(key, label, opts)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user