Update staticcheck version and fix all warnings (#1381)
This commit is contained in:
+21
-21
@@ -99,24 +99,24 @@ type (
|
||||
errorCode int
|
||||
)
|
||||
|
||||
const (
|
||||
ErrorInternal = iota
|
||||
|
||||
ErrorNotAuthorized
|
||||
ErrorNotFound
|
||||
ErrorNameExists
|
||||
ErrorInvalidArgument
|
||||
ErrorNoSpace
|
||||
ErrorNotImplmented
|
||||
)
|
||||
|
||||
// must match order and len of the above const
|
||||
var errorDescriptions = []string{
|
||||
"Internal error",
|
||||
"Not authorized",
|
||||
"Resource not found",
|
||||
"Resource exists",
|
||||
"Invalid argument",
|
||||
"No space",
|
||||
"Not implemented",
|
||||
}
|
||||
//const (
|
||||
// ErrorInternal = iota
|
||||
//
|
||||
// ErrorNotAuthorized
|
||||
// ErrorNotFound
|
||||
// ErrorNameExists
|
||||
// ErrorInvalidArgument
|
||||
// ErrorNoSpace
|
||||
// ErrorNotImplmented
|
||||
//)
|
||||
//
|
||||
//// must match order and len of the above const
|
||||
//var errorDescriptions = []string{
|
||||
// "Internal error",
|
||||
// "Not authorized",
|
||||
// "Resource not found",
|
||||
// "Resource exists",
|
||||
// "Invalid argument",
|
||||
// "No space",
|
||||
// "Not implemented",
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user