Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amsanghi committed Oct 15, 2024
1 parent 8bb4c5c commit 0f78837
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions util/redisutil/redisutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ func (o *queryOptions) string(name string) string {
return vs[len(vs)-1]
}

func (o *queryOptions) strings(name string) []string {
vs := o.q[name]
delete(o.q, name)
return vs
}

func (o *queryOptions) int(name string) int {
s := o.string(name)
if s == "" {
Expand All @@ -134,7 +128,7 @@ func (o *queryOptions) int(name string) int {
return i
}
if o.err == nil {
o.err = fmt.Errorf("redis: invalid %s number: %s", name, err)
o.err = fmt.Errorf("redis: invalid %s number: %w", name, err)
}
return 0
}
Expand Down

0 comments on commit 0f78837

Please sign in to comment.