mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
distribution: SA4021: x = append(y) is equivalent to x = y (staticcheck)
``` distribution/push_v2_test.go:552:29: SA4021: x = append(y) is equivalent to x = y (staticcheck) return nil, errcode.Errors(append([]error{errcode.ErrorCodeUnauthorized.WithMessage("unauthorized")})) ^ ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
94647b5d86
commit
ec1fd4b1b0
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue