Apply suggestions from code review

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
This commit is contained in:
shawnhanx 2021-02-07 09:23:07 +08:00 committed by GitHub
parent 0bee739a2f
commit fa8d07d3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,7 @@ func parseThresholdStatement(signal evictionapi.Signal, val string) (*evictionap
if percentage < 0 {
return nil, fmt.Errorf("eviction percentage threshold %v must be >= 0%%: %s", signal, val)
}
// percentage is a float and should not be greater than 1(100%)
// percentage is a float and should not be greater than 1 (100%)
if percentage > 1 {
return nil, fmt.Errorf("eviction percentage threshold %v must be <= 100%%: %s", signal, val)
}