From 3d939fc3c661995ed7500b09584ab98e28134341 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 16 Jul 2024 13:47:42 +0100 Subject: fix(fetch): report grammar and copy as 'fetching... updates:' feels more like further updates are being fetched than 'fetching... found' --- src/client.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/client.rs b/src/client.rs index 8bdf3c2..5e9ec86 100644 --- a/src/client.rs +++ b/src/client.rs @@ -446,7 +446,7 @@ impl Connect for Client { if report.to_string().is_empty() { "fetching".to_string() } else { - format!("fetching... found {report}") + format!("fetching... updates: {report}") }, )) .to_string(), @@ -484,7 +484,7 @@ impl Connect for Client { if report.to_string().is_empty() { "no updates".to_string() } else { - format!("found {report}") + format!("updates: {report}") }, )) .to_string(), @@ -1062,28 +1062,28 @@ impl Display for FetchReport { display_items.push(format!( "{} proposal{}", self.proposals.len(), - if self.proposals.len() == 1 { "s" } else { "" }, + if self.proposals.len() > 1 { "s" } else { "" }, )); } if !self.commits.is_empty() { display_items.push(format!( "{} commit{}", self.commits.len(), - if self.commits.len() == 1 { "s" } else { "" }, + if self.commits.len() > 1 { "s" } else { "" }, )); } if !self.statuses.is_empty() { display_items.push(format!( "{} status{}", self.statuses.len(), - if self.statuses.len() == 1 { "es" } else { "" }, + if self.statuses.len() > 1 { "es" } else { "" }, )); } if !self.contributor_profiles.is_empty() { display_items.push(format!( "{} contributor profile{}", self.contributor_profiles.len(), - if self.contributor_profiles.len() == 1 { + if self.contributor_profiles.len() > 1 { "s" } else { "" -- cgit v1.2.3