GUACAMOLE-615: Add spaces around operators for consistency with established style.

This commit is contained in:
Mike Jumper
2023-05-05 11:04:40 -07:00
parent 3acd7ce269
commit 38f7b09efb

View File

@@ -164,7 +164,7 @@ Guacamole.Parser = function Parser() {
// We now have enough data for the element. Parse. // We now have enough data for the element. Parse.
var element = buffer.substring(startIndex, elementEnd); var element = buffer.substring(startIndex, elementEnd);
var terminator = buffer.substring(elementEnd, elementEnd+1); var terminator = buffer.substring(elementEnd, elementEnd + 1);
// Add element to array // Add element to array
elementBuffer.push(element); elementBuffer.push(element);
@@ -205,7 +205,7 @@ Guacamole.Parser = function Parser() {
if (lengthEnd !== -1) { if (lengthEnd !== -1) {
// Parse length // Parse length
elementCodepoints = parseInt(buffer.substring(elementEnd+1, lengthEnd)); elementCodepoints = parseInt(buffer.substring(elementEnd + 1, lengthEnd));
if (isNaN(elementCodepoints)) if (isNaN(elementCodepoints))
throw new Error('Non-numeric character in element length.'); throw new Error('Non-numeric character in element length.');