Skip to content

Commit

Permalink
Rename to has_error().
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpfs committed Aug 20, 2024
1 parent de89563 commit 649caba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/net/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl SyncResult {
}

/// Determine if the sync has one or more errors.
pub fn has_errors(&self) -> bool {
pub fn has_error(&self) -> bool {
self.remotes.iter().any(|r| r.result.is_err())
}
}
Expand Down

0 comments on commit 649caba

Please sign in to comment.