Skip to content

Commit

Permalink
Fix gofmt (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor committed Sep 25, 2020
1 parent 736012c commit 211fc9c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pkg/v1/remote/transport/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ import (
// from a redirect. These redirects often included tokens or signed URLs.
var paramWhitelist = map[string]struct{}{
// Token exchange
"scope": struct{}{},
"service": struct{}{},
"scope": {},
"service": {},
// Cross-repo mounting
"mount": struct{}{},
"from": struct{}{},
"mount": {},
"from": {},
// Layer PUT
"digest": struct{}{},
"digest": {},
// Listing tags and catalog
"n": struct{}{},
"last": struct{}{},
"n": {},
"last": {},
}

// Error implements error to support the following error specification:
Expand Down Expand Up @@ -153,8 +153,8 @@ const (

// TODO: Include other error types.
var temporaryErrorCodes = map[ErrorCode]struct{}{
BlobUploadInvalidErrorCode: struct{}{},
TooManyRequestsErrorCode: struct{}{},
BlobUploadInvalidErrorCode: {},
TooManyRequestsErrorCode: {},
}

// CheckError returns a structured error if the response status is not in codes.
Expand Down

0 comments on commit 211fc9c

Please sign in to comment.