Fixing all the issues with upgrading to golangci-lint 1.21.0

This commit is contained in:
zendril
2019-12-13 00:53:18 -05:00
parent b8cc5dd001
commit 4e22352e9c
14 changed files with 166 additions and 16 deletions
+1 -1
View File
@@ -35,7 +35,6 @@ const (
)
func NewError(code ErrorCode, detail ...interface{}) Error {
var errMap = map[ErrorCode]Error{
BLOB_UNKNOWN: {
Message: "blob unknown to registry",
@@ -138,5 +137,6 @@ func NewError(code ErrorCode, detail ...interface{}) Error {
e.Code = code
e.Detail = detail
return e
}