don't explicitly compare against true or false
This commit is contained in:
parent
d9a328a0ad
commit
addd7426be
10 changed files with 15 additions and 15 deletions
|
@ -4049,7 +4049,7 @@ fn get_next_url(used_links: &mut FxHashSet<String>, url: String) -> String {
|
|||
return url;
|
||||
}
|
||||
let mut add = 1;
|
||||
while used_links.insert(format!("{}-{}", url, add)) == false {
|
||||
while !used_links.insert(format!("{}-{}", url, add)) {
|
||||
add += 1;
|
||||
}
|
||||
format!("{}-{}", url, add)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue