Replace error checks against size with is_empty
This commit is contained in:
parent
94dbf69f5d
commit
684752e75b
58 changed files with 116 additions and 116 deletions
|
|
@ -3546,7 +3546,7 @@ bool Main::start() {
|
|||
Error err;
|
||||
|
||||
Vector<String> paths = get_files_with_extension(gdscript_docs_path, "gd");
|
||||
ERR_FAIL_COND_V_MSG(paths.size() == 0, false, "Couldn't find any GDScript files under the given directory: " + gdscript_docs_path);
|
||||
ERR_FAIL_COND_V_MSG(paths.is_empty(), false, "Couldn't find any GDScript files under the given directory: " + gdscript_docs_path);
|
||||
|
||||
for (const String &path : paths) {
|
||||
Ref<GDScript> gdscript = ResourceLoader::load(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue