diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-16 20:27:47 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-16 20:27:47 +0300 |
commit | fe01e9c947b8c2fcb328e79b8b91ceebfd8c04cc (patch) | |
tree | b283cfa4a034ecfd3f12a2e519b594c8b6beb41d | |
parent | 87e107d92143e108ec3ec5f91851ca3cb3768175 (diff) | |
download | rneovim-fe01e9c947b8c2fcb328e79b8b91ceebfd8c04cc.tar.gz rneovim-fe01e9c947b8c2fcb328e79b8b91ceebfd8c04cc.tar.bz2 rneovim-fe01e9c947b8c2fcb328e79b8b91ceebfd8c04cc.zip |
ex_docmd: Remove unneeded if()
-rw-r--r-- | src/nvim/ex_docmd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 60d3bb07a3..0e399c9fb3 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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; |