more idiomatic code

This commit is contained in:
Thomas Eppers 2023-02-19 11:48:16 +01:00
parent 1c72d4cd24
commit 28ae313797

View File

@ -169,10 +169,9 @@ impl TagList {
}
}
//readd next page
match self.tags.as_ref().unwrap().next_page().await {
None => (),
Some(_) => self.lines.push(next_page.unwrap()),
//readd next page item
if let Some(_) = self.tags.as_ref().unwrap().next_page().await {
self.lines.push(next_page.unwrap());
}
}
},