enable golang-lint CI run and -race tests (#3247)

This commit is contained in:
Harshavardhana
2020-06-08 05:55:10 -07:00
committed by GitHub
parent 166db95464
commit fa520cbd1a
9 changed files with 57 additions and 46 deletions
+1 -2
View File
@@ -185,8 +185,7 @@ func mainAdminConsole(ctx *cli.Context) error {
fatalIf(errInvalidArgument().Trace(ctx.Args()...), "please set a proper limit, for example: '--limit 5' to display last 5 logs, omit this flag to display all available logs")
}
}
var logType string
logType = strings.ToLower(ctx.String("type"))
logType := strings.ToLower(ctx.String("type"))
if logType != "minio" && logType != "application" && logType != "all" {
fatalIf(errInvalidArgument().Trace(ctx.Args()...), "Invalid value for --type flag. Valid options are [minio, application, all]")
}