refactor(clang-tidy): remove nested redundant ifdefs #18811

This commit is contained in:
dundargoc
2022-06-01 16:27:39 +02:00
committed by GitHub
parent d837b6d50c
commit 9f1ec825cd

View File

@@ -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";
}