ratio must gte 0
This commit is contained in:
@@ -41,7 +41,7 @@ func CheckGroupRatio(jsonStr string) error {
|
|||||||
}
|
}
|
||||||
for name, ratio := range checkGroupRatio {
|
for name, ratio := range checkGroupRatio {
|
||||||
if ratio < 0 {
|
if ratio < 0 {
|
||||||
return errors.New("group ratio must be greater than 0: " + name)
|
return errors.New("group ratio must be not less than 0: " + name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user