diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-06-01 16:27:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 07:27:39 -0700 |
commit | 9f1ec825cdcb5e2f4bd8c7b15b50fb763ddd5cca (patch) | |
tree | 921be4826bb8ca431aa9eece6fa383ddd3a6f662 | |
parent | d837b6d50cbb7e90ac8f77a9e1ac2a69acae02c1 (diff) | |
download | rneovim-9f1ec825cdcb5e2f4bd8c7b15b50fb763ddd5cca.tar.gz rneovim-9f1ec825cdcb5e2f4bd8c7b15b50fb763ddd5cca.tar.bz2 rneovim-9f1ec825cdcb5e2f4bd8c7b15b50fb763ddd5cca.zip |
refactor(clang-tidy): remove nested redundant ifdefs #18811
-rw-r--r-- | src/nvim/ex_cmds2.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 0a91072036..45c05c9980 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -2798,15 +2798,11 @@ void ex_language(exarg_T *eap) } if (*name == NUL) { -# ifdef HAVE_WORKING_LIBINTL if (what == VIM_LC_MESSAGES) { p = get_mess_env(); } else { -# endif - p = setlocale(what, NULL); -# ifdef HAVE_WORKING_LIBINTL - } -# endif + p = setlocale(what, NULL); + } if (p == NULL || *p == NUL) { p = "Unknown"; } |