code refactor
This commit is contained in:
parent
24887cce83
commit
e089271f78
|
@ -76,6 +76,7 @@ func (arg *AlertRuleGroup) Update(cols ...string) error {
|
|||
func (arg *AlertRuleGroup) FillUserGroups() error {
|
||||
ids := strings.Fields(arg.UserGroupIds)
|
||||
if len(ids) == 0 {
|
||||
arg.UserGroups = []UserGroup{}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue