aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-11-08 09:48:48 +0100
committerGitHub <noreply@github.com>2022-11-08 09:48:48 +0100
commitfae754073289566051433fae74ec65783f9e7a6a (patch)
tree27fa3555e5a8a016dce55cc39f20599e32cf7046 /src/nvim/ex_docmd.c
parentd187c00faf4feb76bdc544b87bea71f217d05957 (diff)
parent731cdde28ea8d48cc23ba2752a08c261c87eee92 (diff)
downloadrneovim-fae754073289566051433fae74ec65783f9e7a6a.tar.gz
rneovim-fae754073289566051433fae74ec65783f9e7a6a.tar.bz2
rneovim-fae754073289566051433fae74ec65783f9e7a6a.zip
Merge pull request #20821 from dundargoc/refactor/clang-tidy
refactor: fix clang-tidy warnings
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 992cd9478d..e19c5f27d7 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -4364,9 +4364,8 @@ char *check_nextcmd(char *p)
if (*s == '|' || *s == '\n') {
return s + 1;
- } else {
- return NULL;
}
+ return NULL;
}
/// - if there are more files to edit
@@ -4765,9 +4764,8 @@ static void ex_only(exarg_T *eap)
for (wp = firstwin; --wnr > 0;) {
if (wp->w_next == NULL) {
break;
- } else {
- wp = wp->w_next;
}
+ wp = wp->w_next;
}
} else {
wp = curwin;