Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored and hibiken committed Jul 8, 2023
1 parent fde294b commit e4b8663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rdb/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e4b8663

Please sign in to comment.