Skip to content

Commit b1560d5

Browse files
author
Max Leiter
authored
Merge pull request #130 from astorije/astorije/fix-lints
Fix linting issues
2 parents 131a5f8 + 5ec56e3 commit b1560d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/client.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@ IrcClient.prototype.matchAction = function(match_regex, cb) {
625625
* Truncate a string into blocks of a set size
626626
*/
627627
function isHighSurrogate(char_code) {
628-
return char_code >= 55296 // d800
629-
&& char_code <= 56319; // dbff
628+
return char_code >= 55296 && // d800
629+
char_code <= 56319; // dbff
630630
}
631631

632632
function truncateString(str, block_size) {
@@ -639,9 +639,9 @@ function truncateString(str, block_size) {
639639
while (remaining_string.length) {
640640
// Do not split unicode surrogate pairs
641641
this_block_size =
642-
isHighSurrogate(remaining_string.charCodeAt(block_size - 1))
643-
? block_size - 1
644-
: block_size;
642+
isHighSurrogate(remaining_string.charCodeAt(block_size - 1)) ?
643+
block_size - 1 :
644+
block_size;
645645

646646
blocks.push(remaining_string.substr(0, this_block_size));
647647
remaining_string = remaining_string.substr(this_block_size);

0 commit comments

Comments
 (0)