Replace error checks against size with is_empty
This commit is contained in:
@ -63,7 +63,7 @@ float EditorCommandPalette::_score_path(const String &p_search, const String &p_
|
||||
}
|
||||
|
||||
void EditorCommandPalette::_update_command_search(const String &search_text) {
|
||||
ERR_FAIL_COND(commands.size() == 0);
|
||||
ERR_FAIL_COND(commands.is_empty());
|
||||
|
||||
HashMap<String, TreeItem *> sections;
|
||||
TreeItem *first_section = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user