mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ex_docmd: Remove unneeded if()
This commit is contained in:
parent
87e107d921
commit
fe01e9c947
@ -4097,12 +4097,11 @@ int expand_filename(exarg_T *eap, char_u **cmdlinep, char_u **errormsgp)
|
|||||||
options += WILD_ICASE;
|
options += WILD_ICASE;
|
||||||
p = ExpandOne(&xpc, eap->arg, NULL,
|
p = ExpandOne(&xpc, eap->arg, NULL,
|
||||||
options, WILD_EXPAND_FREE);
|
options, WILD_EXPAND_FREE);
|
||||||
if (p == NULL)
|
if (p == NULL) {
|
||||||
return FAIL;
|
return FAIL;
|
||||||
if (p != NULL) {
|
|
||||||
(void)repl_cmdline(eap, eap->arg, STRLEN(eap->arg), p, cmdlinep);
|
|
||||||
xfree(p);
|
|
||||||
}
|
}
|
||||||
|
(void)repl_cmdline(eap, eap->arg, STRLEN(eap->arg), p, cmdlinep);
|
||||||
|
xfree(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return OK;
|
return OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user