mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-28 21:41:15 -03:00
expand stage_wildcards: reuse local variable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user