Skip to content

Commit 513fcfb

Browse files
committed
Remove strconv
1 parent b67982d commit 513fcfb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

commands.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"errors"
66
"io"
7-
"strconv"
87
"time"
98

109
"github.com/go-redis/redis/v8/internal"
@@ -2308,8 +2307,7 @@ func (c cmdable) SlaveOf(ctx context.Context, host, port string) *StatusCmd {
23082307
}
23092308

23102309
func (c cmdable) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd {
2311-
n := strconv.FormatInt(num, 10)
2312-
cmd := NewSlowLogCmd(context.Background(), "slowlog", "get", n)
2310+
cmd := NewSlowLogCmd(context.Background(), "slowlog", "get", num)
23132311
_ = c(ctx, cmd)
23142312
return cmd
23152313
}

0 commit comments

Comments
 (0)