diff --git a/registry/storage/driver/s3-aws/s3_test.go b/registry/storage/driver/s3-aws/s3_test.go index 8d201804..4987c52d 100644 --- a/registry/storage/driver/s3-aws/s3_test.go +++ b/registry/storage/driver/s3-aws/s3_test.go @@ -500,8 +500,7 @@ func TestWalk(t *testing.T) { } // create file structure matching fileset above - // nolint:prealloc - var created []string + created := make([]string, 0, len(fileset)) for _, p := range fileset { err := drvr.PutContent(context.Background(), p, []byte("content "+p)) if err != nil {