expand stage_wildcards: reuse local variable

This commit is contained in:
Johannes Altmanninger
2026-06-21 15:50:31 +08:00
parent a12e393a2a
commit cd843541c2

View File

@@ -1460,7 +1460,7 @@ fn stage_wildcards(
// to mean don't do file expansions, so if we're not doing file expansions, just drop this
// completion on the floor.
#[allow(clippy::collapsible_if)]
if !self.flags.contains(ExpandFlags::FOR_COMPLETIONS) {
if !for_completions {
if !out.add(path_to_expand) {
return append_overflow_error(self.errors, None);
}