mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
Fixing all the issues with upgrading to golangci-lint 1.21.0
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user