1
0
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:
Klaus Post
2022-12-05 17:32:04 +01:00
committed by GitHub
parent a55d40caf7
commit 52a931bfa7
46 changed files with 146 additions and 169 deletions

View File

@ -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")