refactor(general): minor miscellaneous cleanups (#4074)

Cleanups:

- use non-format variants of Log/Print with no additional args;
- fold in Fprintf call with no args into the following one;
- add missing arg placeholder in format strings;
- use require.Positive instead of Greater(..., 0);
- rename function to fillWithZeros to avoid collision with builtin clear;
- define type for context key to avoid collisions.
This commit is contained in:
Julio López authored and GitHub committed 2024-08-25 22:10:46 -07:00
1 parent 6902738e0d
commit 948162dce5
11 files changed
+22 -22

No files matched your search

+1 -1
View File
@@ -740,7 +740,7 @@ func TestParallelUploadUploadsBlobsInParallel(t *testing.T) {
require.NoError(t, th.repo.Flush(ctx))
require.Greater(t, maxParallelCalls.Load(), int32(0))
require.Positive(t, maxParallelCalls.Load())
}
func randomBytes(n int64) []byte {