Update staticcheck version and fix all warnings (#1381)

This commit is contained in:
Ta-Ching Chen
2019-11-05 18:09:12 +08:00
committed by GitHub
parent 93d4b88d84
commit b9a5588ca9
43 changed files with 122 additions and 219 deletions
+21 -21
View File
@@ -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",
//}