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:
2026-05-13 14:04:58 +02:00
parent 3e374e70f4
commit aeafce157b
+2 -1
View File
@@ -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 {