mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
ex_docmd: Remove unneeded if()
This commit is contained in:
@@ -4097,12 +4097,11 @@ int expand_filename(exarg_T *eap, char_u **cmdlinep, char_u **errormsgp)
|
||||
options += WILD_ICASE;
|
||||
p = ExpandOne(&xpc, eap->arg, NULL,
|
||||
options, WILD_EXPAND_FREE);
|
||||
if (p == NULL)
|
||||
if (p == NULL) {
|
||||
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;
|
||||
|
Reference in New Issue
Block a user