diff --git a/support/list.go b/support/list.go index 856fe3b..b182ff9 100644 --- a/support/list.go +++ b/support/list.go @@ -29,13 +29,13 @@ func (this *OperationAccess) Set(k string, v []any) error { return this.Push(k, v...) } -func (this *OperationAccess) Push(k string, input ...any) error { +func (this *OperationAccess) Push(k string, ids ...any) error { if _, ok := this.data[k]; !ok { this.Set(k, []any{}) } - for i := 0; i < len(input); i++ { - if v, err := this.Convert(input[i]); err != nil { + for i := 0; i < len(ids); i++ { + if v, err := this.Convert(ids[i]); err != nil { return err } else if !lo.Contains(this.data[k], v) { this.data[k] = append(this.data[k], v)