mirror of
https://github.com/kopia/kopia.git
synced 2026-08-07 03:03:14 -04:00
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:
1 parent
6902738e0d
commit
948162dce5
11 files changed
+22
-22
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user