From 513fcfb224feb240e9a6221b36145d55a995932f Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 11 Sep 2020 09:32:39 +0300 Subject: [PATCH] Remove strconv --- commands.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands.go b/commands.go index b29e4f3..5ee2836 100644 --- a/commands.go +++ b/commands.go @@ -4,7 +4,6 @@ import ( "context" "errors" "io" - "strconv" "time" "github.com/go-redis/redis/v8/internal" @@ -2308,8 +2307,7 @@ func (c cmdable) SlaveOf(ctx context.Context, host, port string) *StatusCmd { } func (c cmdable) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd { - n := strconv.FormatInt(num, 10) - cmd := NewSlowLogCmd(context.Background(), "slowlog", "get", n) + cmd := NewSlowLogCmd(context.Background(), "slowlog", "get", num) _ = c(ctx, cmd) return cmd }