Skip to content

Commit 9e20c6d

Browse files
authored
Merge pull request #85 from SwanSpouse/remove_dup_check
remove duplicate error check
2 parents 31a5d5b + 5d95329 commit 9e20c6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/full_check/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ func main() {
7676
panic(common.Logger.Errorf("invalid option batchcount %s, expect int 1<=batchcount<=10000", conf.Opts.BatchCount))
7777
}
7878
parallel := conf.Opts.Parallel
79-
if err != nil || parallel < 1 || parallel > 100 {
79+
if parallel < 1 || parallel > 100 {
8080
panic(common.Logger.Errorf("invalid option parallel %d, expect 1<=parallel<=100", conf.Opts.Parallel))
8181
}
8282
qps := conf.Opts.Qps
83-
if err != nil || qps < 1 || qps > 5000000 {
83+
if qps < 1 || qps > 5000000 {
8484
panic(common.Logger.Errorf("invalid option qps %d, expect 1<=qps<=5000000", conf.Opts.Qps))
8585
}
8686
if conf.Opts.SourceAuthType != "auth" && conf.Opts.SourceAuthType != "adminauth" {

0 commit comments

Comments
 (0)