Move limit check down

This commit is contained in:
Jonas Schievink 2020-06-10 12:37:00 +02:00
parent 56c7145993
commit ed2817e599

View File

@ -337,10 +337,10 @@ impl Query {
continue; continue;
} }
res.push(symbol.clone());
if res.len() >= self.limit { if res.len() >= self.limit {
return res; return res;
} }
res.push(symbol.clone());
} }
} }
} }