diff options
Diffstat (limited to 'src/bin/git_remote_nostr/main.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/main.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bin/git_remote_nostr/main.rs b/src/bin/git_remote_nostr/main.rs index aac626b..618aff7 100644 --- a/src/bin/git_remote_nostr/main.rs +++ b/src/bin/git_remote_nostr/main.rs | |||
| @@ -157,17 +157,13 @@ async fn fetching_with_report_for_helper( | |||
| 157 | ) -> Result<()> { | 157 | ) -> Result<()> { |
| 158 | let term = console::Term::stderr(); | 158 | let term = console::Term::stderr(); |
| 159 | term.write_line("nostr: fetching...")?; | 159 | term.write_line("nostr: fetching...")?; |
| 160 | let (relay_reports, progress_reporter) = client | 160 | let (relay_reports, _progress_reporter) = client |
| 161 | .fetch_all( | 161 | .fetch_all( |
| 162 | Some(git_repo_path), | 162 | Some(git_repo_path), |
| 163 | Some(trusted_maintainer_coordinate), | 163 | Some(trusted_maintainer_coordinate), |
| 164 | &HashSet::new(), | 164 | &HashSet::new(), |
| 165 | ) | 165 | ) |
| 166 | .await?; | 166 | .await?; |
| 167 | if !relay_reports.iter().any(std::result::Result::is_err) { | ||
| 168 | let _ = progress_reporter.clear(); | ||
| 169 | term.clear_last_lines(1)?; | ||
| 170 | } | ||
| 171 | let report = consolidate_fetch_reports(relay_reports); | 167 | let report = consolidate_fetch_reports(relay_reports); |
| 172 | if report.to_string().is_empty() { | 168 | if report.to_string().is_empty() { |
| 173 | term.write_line("nostr: no updates")?; | 169 | term.write_line("nostr: no updates")?; |