Merge pull request #981 from frin1/fix/optimizer-limit-results

fix optimizer limit
This commit is contained in:
Yo-An Lin 2022-10-05 18:50:00 +08:00 committed by GitHub
commit 4c0fdee668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ var optimizeCmd = &cobra.Command{
continue
}
if len(values) < resultLimit && resultLimit != 0 {
if len(values) > resultLimit && resultLimit != 0 {
values = values[:resultLimit]
}