2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-11-10 03:21:55 +08:00

chore: unnecessary use of fmt.Sprintf

This commit is contained in:
guoguangwu 2023-07-07 10:05:34 +08:00 committed by Ken Hibino
parent fde294be32
commit e4b8663154

View File

@ -343,7 +343,7 @@ func (r *RDB) memoryUsage(qname string) (int64, error) {
}
usg, err := cast.ToInt64E(res)
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
}