Remove unnecessary type conversions.

This commit is contained in:
Martin Smith
2025-02-28 19:38:33 +00:00
parent 2099ec1cd6
commit 092899df8b
17 changed files with 30 additions and 30 deletions

View File

@@ -32,7 +32,7 @@ func TestDefaultLoad(t *testing.T) {
// happy case, assert correct parameters are passed around and content stream is closed
err := util.DefaultLoad(context.TODO(), h, 10, 11, func(ctx context.Context, ih backend.Handle, length int, offset int64) (io.ReadCloser, error) {
rtest.Equals(t, h, ih)
rtest.Equals(t, int(10), length)
rtest.Equals(t, 10, length)
rtest.Equals(t, int64(11), offset)
return rd, nil