@@ -47,17 +47,13 @@ func (c cmdable) ACLLogReset(ctx context.Context) *StatusCmd {
4747}
4848
4949func (c cmdable ) ACLDelUser (ctx context.Context , username string ) * IntCmd {
50- args := make ([]interface {}, 3 , 3 )
51- args [0 ] = "acl"
52- args [1 ] = "deluser"
53- args [2 ] = username
54- cmd := NewIntCmd (ctx , args ... )
50+ cmd := NewIntCmd (ctx , "acl" , "deluser" , username )
5551 _ = c (ctx , cmd )
5652 return cmd
5753}
5854
5955func (c cmdable ) ACLSetUser (ctx context.Context , username string , rules ... string ) * StatusCmd {
60- args := make ([]interface {}, 3 + len (rules ), 3 + len ( rules ) )
56+ args := make ([]interface {}, 3 + len (rules ))
6157 args [0 ] = "acl"
6258 args [1 ] = "setuser"
6359 args [2 ] = username
@@ -84,8 +80,7 @@ func (c cmdable) ACLCat(ctx context.Context) *StringSliceCmd {
8480func (c cmdable ) ACLCatArgs (ctx context.Context , options * ACLCatArgs ) * StringSliceCmd {
8581 // if there is a category passed, build new cmd, if there isn't - use the ACLCat method
8682 if options != nil && options .Category != "" {
87- args := []interface {}{"acl" , "cat" , options .Category }
88- cmd := NewStringSliceCmd (ctx , args ... )
83+ cmd := NewStringSliceCmd (ctx , "acl" , "cat" , options .Category )
8984 _ = c (ctx , cmd )
9085 return cmd
9186 }
0 commit comments