Simplify CandidateGenerator::next() function.
This commit is contained in:
@@ -72,12 +72,10 @@ impl CandidateGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
if self.first_use {
|
||||
self.first_use = false;
|
||||
} else {
|
||||
self.first_use = true;
|
||||
if !self.first_use {
|
||||
self.base += 6;
|
||||
}
|
||||
self.first_use = !self.first_use;
|
||||
|
||||
val
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user