ex_docmd: Remove unneeded if()

This commit is contained in:
ZyX 2017-04-16 20:27:47 +03:00
parent 87e107d921
commit fe01e9c947

View File

@ -4097,14 +4097,13 @@ 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); (void)repl_cmdline(eap, eap->arg, STRLEN(eap->arg), p, cmdlinep);
xfree(p); xfree(p);
} }
} }
}
return OK; return OK;
} }