style(migrate): fix '1 file(s)' stutter in scripts/ artifact report
Trivial: pluralise 'file' based on entries.len() rather than the lazy '(s)' suffix. The current output says '1 file(s)' which reads awkwardly.
This commit is contained in:
@@ -420,8 +420,9 @@ fn report_legacy_artifacts(artifacts: &[crate::lua::migrate::LegacyArtifact]) {
|
||||
println!(" ── legacy `scripts/` directory ─────────────────");
|
||||
println!(" path: {}", artifact.path.display());
|
||||
println!(
|
||||
" {} file(s): {}",
|
||||
" {} {}: {}",
|
||||
entries.len(),
|
||||
if entries.len() == 1 { "file" } else { "files" },
|
||||
if entries.is_empty() {
|
||||
"(empty)".to_string()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user