mirror of
https://github.com/minio/mc.git
synced 2025-07-28 20:01:58 +03:00
Add staticcheck to CI (#4386)
This commit is contained in:
@ -23,7 +23,7 @@ import (
|
||||
"time"
|
||||
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
"github.com/dustin/go-humanize"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v2"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
@ -70,8 +70,8 @@ func mainAdminSpeedTestObject(ctx *cli.Context, aliasedURL string, outCh chan<-
|
||||
fatalIf(probe.NewError(e), "Unable to parse object size")
|
||||
return nil
|
||||
}
|
||||
if size < 0 {
|
||||
fatalIf(errInvalidArgument(), "size is expected to be atleast 0 bytes")
|
||||
if size <= 0 {
|
||||
fatalIf(errInvalidArgument(), "size is expected to be more than 0 bytes")
|
||||
return nil
|
||||
}
|
||||
concurrent := ctx.Int("concurrent")
|
||||
|
Reference in New Issue
Block a user