Skip to content

Commit

Permalink
Fix godot_js_websocket_send function unused assignment.
Browse files Browse the repository at this point in the history
(cherry picked from commit 112e2fd)
  • Loading branch information
madmiraal authored and akien-mga committed Nov 17, 2020
1 parent e1b72e1 commit 04103db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/websocket/library_godot_websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ var GodotWebSocket = {
for(i = 0; i < p_buf_len; i++) {
bytes_array[i] = getValue(p_buf + i, 'i8');
}
var out = bytes_array;
if (p_raw) {
out = bytes_array.buffer;
} else {
var out = bytes_array.buffer;
if (!p_raw) {
out = new TextDecoder("utf-8").decode(bytes_array);
}
return GodotWebSocket.send(p_id, out);
Expand Down

0 comments on commit 04103db

Please sign in to comment.