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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue