mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-14 11:31:18 +08:00
chore: unnecessary use of fmt.Sprintf
This commit is contained in:
parent
fde294be32
commit
e4b8663154
@ -343,7 +343,7 @@ func (r *RDB) memoryUsage(qname string) (int64, error) {
|
|||||||
}
|
}
|
||||||
usg, err := cast.ToInt64E(res)
|
usg, err := cast.ToInt64E(res)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, errors.E(op, errors.Internal, fmt.Sprintf("could not cast script return value to int64"))
|
return 0, errors.E(op, errors.Internal, "could not cast script return value to int64")
|
||||||
}
|
}
|
||||||
return usg, nil
|
return usg, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user