diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-03-15 22:11:02 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-03-16 14:04:14 +0300 |
commit | c0eeb32e38fbd4f582f7a2726e6535614e507205 (patch) | |
tree | df43f691db3279e784bf4855f9413fdebbfb3e39 /modules/gdscript/gdscript_analyzer.cpp | |
parent | bdefdc866b7733741d310085d6617a6fa8881405 (diff) | |
download | redot-engine-c0eeb32e38fbd4f582f7a2726e6535614e507205.tar.gz |
GDScript: Fix false positive `REDUNDANT_AWAIT` warning
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 38d5ae6b77..c233d51801 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -2548,7 +2548,7 @@ void GDScriptAnalyzer::reduce_await(GDScriptParser::AwaitNode *p_await) { #ifdef DEBUG_ENABLED GDScriptParser::DataType to_await_type = p_await->to_await->get_datatype(); - if (!(to_await_type.has_no_type() || to_await_type.is_coroutine || to_await_type.builtin_type == Variant::SIGNAL)) { + if (!to_await_type.is_coroutine && !to_await_type.is_variant() && to_await_type.builtin_type != Variant::SIGNAL) { parser->push_warning(p_await, GDScriptWarning::REDUNDANT_AWAIT); } #endif |