refactor: remove NULL check that is always true

This commit is contained in:
zeertzjq
2022-02-16 17:01:35 +08:00
parent cc81a8253b
commit 758f1e5999

View File

@@ -3583,8 +3583,7 @@ int map_to_exists_mode(const char *const rhs, const int mode, const bool abbr)
mp = maphash[hash];
}
for (; mp; mp = mp->m_next) {
if ((mp->m_mode & mode)
&& mp->m_str != NULL && strstr((char *)mp->m_str, rhs) != NULL) {
if ((mp->m_mode & mode) && strstr((char *)mp->m_str, rhs) != NULL) {
return true;
}
}