You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-01 18:51:18 +00:00
GDScript: Fix false positive REDUNDANT_AWAIT warning
(cherry picked from commit c0eeb32e38)
This commit is contained in:
committed by
Yuri Sizov
parent
47c4044d03
commit
07beae98f0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user