Skip to content

Commit

Permalink
replaced logic with isEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar-Pepper committed Jun 2, 2023
1 parent 927f200 commit d834ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zingolib/src/lightclient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ impl LightClient {
pub async fn do_get_birthday(&self) -> u64 {
let summaries = self.do_list_txsummaries().await;
let mut min_height = 0;
if summaries.len() > 0 {
if !summaries.is_empty() {
min_height = u64::from(summaries[0].block_height);
for summary in summaries {
if u64::from(summary.block_height) < min_height {
Expand Down

0 comments on commit d834ff5

Please sign in to comment.