diff --git a/distribution/push_v2_test.go b/distribution/push_v2_test.go index 9bf3675ece..ca0db486f5 100644 --- a/distribution/push_v2_test.go +++ b/distribution/push_v2_test.go @@ -549,7 +549,7 @@ type mockBlobStoreWithCreate struct { } func (blob *mockBlobStoreWithCreate) Create(ctx context.Context, options ...distribution.BlobCreateOption) (distribution.BlobWriter, error) { - return nil, errcode.Errors(append([]error{errcode.ErrorCodeUnauthorized.WithMessage("unauthorized")})) + return nil, errcode.Errors([]error{errcode.ErrorCodeUnauthorized.WithMessage("unauthorized")}) } type mockRepoWithBlob struct {