enable golang-lint CI run and -race tests (#3247)
This commit is contained in:
@@ -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]")
|
||||
}
|
||||
|
||||
@@ -352,8 +352,7 @@ func (s *TestSuite) TestCopy(c *C) {
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
data := "hello world"
|
||||
var reader io.Reader
|
||||
reader = bytes.NewReader([]byte(data))
|
||||
reader := bytes.NewReader([]byte(data))
|
||||
n, err := fsClientSource.Put(context.Background(), reader, int64(len(data)), map[string]string{
|
||||
"Content-Type": "application/octet-stream",
|
||||
}, nil, nil, false, false)
|
||||
|
||||
@@ -52,16 +52,12 @@ const (
|
||||
idLabel string = "ID"
|
||||
prefixLabel string = "Prefix"
|
||||
statusLabel string = "Enabled "
|
||||
statusDisabledLabel string = "Disabled"
|
||||
expiryLabel string = "Expiry"
|
||||
expiryDatesLabel string = "Date/Days "
|
||||
singleTagLabel string = "Tag"
|
||||
tagLabel string = "Tags"
|
||||
transitionLabel string = "Transition"
|
||||
transitionDateLabel string = "Date/Days "
|
||||
storageClassLabel string = "Storage-Class "
|
||||
forceLabel string = "force"
|
||||
allLabel string = "all"
|
||||
)
|
||||
|
||||
// Keys to be used in map structure which stores the columns to be displayed.
|
||||
@@ -70,7 +66,6 @@ const (
|
||||
storageClassLabelKey string = "Storage-Class"
|
||||
expiryDatesLabelKey string = "Expiry-Dates"
|
||||
transitionDatesLabelKey string = "Transition-Date"
|
||||
transitionDaysLabelKey string = "Transition-Days"
|
||||
)
|
||||
|
||||
// Some cell values
|
||||
|
||||
Reference in New Issue
Block a user