diff options
Diffstat (limited to 'src/bin/git_remote_nostr')
| -rw-r--r-- | src/bin/git_remote_nostr/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/git_remote_nostr/main.rs b/src/bin/git_remote_nostr/main.rs index 66c23ed..d7151d8 100644 --- a/src/bin/git_remote_nostr/main.rs +++ b/src/bin/git_remote_nostr/main.rs | |||
| @@ -172,6 +172,9 @@ async fn fetching_with_report_for_helper( | |||
| 172 | ) | 172 | ) |
| 173 | .await?; | 173 | .await?; |
| 174 | let has_errors = relay_reports.iter().any(std::result::Result::is_err); | 174 | let has_errors = relay_reports.iter().any(std::result::Result::is_err); |
| 175 | if !has_errors || !verbose { | ||
| 176 | let _ = progress_reporter.clear(); | ||
| 177 | } | ||
| 175 | let report = consolidate_fetch_reports(relay_reports); | 178 | let report = consolidate_fetch_reports(relay_reports); |
| 176 | if report.to_string().is_empty() { | 179 | if report.to_string().is_empty() { |
| 177 | if verbose { | 180 | if verbose { |
| @@ -180,8 +183,5 @@ async fn fetching_with_report_for_helper( | |||
| 180 | } else { | 183 | } else { |
| 181 | term.write_line(&format!("nostr updates: {report}"))?; | 184 | term.write_line(&format!("nostr updates: {report}"))?; |
| 182 | } | 185 | } |
| 183 | if !has_errors || verbose { | ||
| 184 | let _ = progress_reporter.clear(); | ||
| 185 | } | ||
| 186 | Ok(()) | 186 | Ok(()) |
| 187 | } | 187 | } |