Skip to content

Commit

Permalink
Remove strconv
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Sep 11, 2020
1 parent b67982d commit 513fcfb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"
"io"
"strconv"
"time"

"github.com/go-redis/redis/v8/internal"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 513fcfb

Please sign in to comment.