diff --git a/module/message-command/line-group.go b/module/message-command/line-group.go index 3eb3980..4ab5ab2 100644 --- a/module/message-command/line-group.go +++ b/module/message-command/line-group.go @@ -351,17 +351,10 @@ func lottery(sub, txt string, s *lineobj.SourceObject) (res string) { dest[val] = arr[idx] arr[idx] = nil } + arr = nil data := dest[0] - // set arr to nil - for i := range dest { - dest[i] = nil - } - arr = nil - dest = nil - perm = nil - conf := config.GetConf() u := conf.URL if last := len(u); last > 0 && u[last-1] == '/' {