You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Replace error checks against size with is_empty
This commit is contained in:
@@ -91,7 +91,7 @@ bool RemoteDebuggerPeerWebSocket::has_message() {
|
||||
}
|
||||
|
||||
Array RemoteDebuggerPeerWebSocket::get_message() {
|
||||
ERR_FAIL_COND_V(in_queue.size() < 1, Array());
|
||||
ERR_FAIL_COND_V(in_queue.is_empty(), Array());
|
||||
Array msg = in_queue[0];
|
||||
in_queue.pop_front();
|
||||
return msg;
|
||||
|
||||
Reference in New Issue
Block a user