mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-615: Add spaces around operators for consistency with established style.
This commit is contained in:
@@ -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.');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user