cosmetic changes

This commit is contained in:
2022-03-02 06:18:19 +02:00
committed by Motiejus Jakštys
parent 0ccbdc4215
commit a526379fd8
6 changed files with 41 additions and 62 deletions

View File

@@ -141,9 +141,8 @@ pub const ShellWriter = struct {
var it = self.counts.iterator();
while (it.next()) |entry| {
if (entry.value_ptr.* == 1) {
if (entry.value_ptr.* == 1)
continue;
}
const score = entry.key_ptr.*.len * entry.value_ptr.*;
try deque.add(KV{ .shell = entry.key_ptr.*, .score = score });
}