1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Merge pull request #30576 from qarmin/lgtm_coverage

Changed some code reported by LGTM and Coverity
This commit is contained in:
Rémi Verschelde
2019-07-20 12:00:13 +02:00
committed by GitHub
55 changed files with 94 additions and 202 deletions

View File

@@ -832,7 +832,7 @@ void EditorNode::_get_scene_metadata(const String &p_file) {
for (List<String>::Element *E = esl.front(); E; E = E->next()) {
Variant st = cf->get_value("editor_states", E->get());
if (st.get_type()) {
if (st.get_type() != Variant::NIL) {
md[E->get()] = st;
}
}
@@ -2541,8 +2541,6 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
restart_editor();
} break;
default: {
if (p_option >= IMPORT_PLUGIN_BASE) {
}
}
}
}