ESLint is happy!

This commit is contained in:
Mahrud Sayrafi
2018-01-04 01:10:12 -08:00
committed by Sanjana Rajan
parent 370a15e2a1
commit 11a2d0070b
37 changed files with 476 additions and 163 deletions

View File

@@ -115,7 +115,6 @@ function addheader() {
}
/**
* Calculates a checksum over the given data and returns it base64 encoded
* @param {String} data Data to create a CRC-24 checksum for

View File

@@ -39,7 +39,7 @@ function s2r(t, o) {
r.push(b64s.charAt((c >> 2) & 63));
a = (c & 3) << 4;
} else if (s === 1) {
r.push(b64s.charAt((a | (c >> 4) & 15)));
r.push(b64s.charAt(a | ((c >> 4) & 15)));
a = (c & 15) << 2;
} else if (s === 2) {
r.push(b64s.charAt(a | ((c >> 6) & 3)));
@@ -99,7 +99,7 @@ function r2s(t) {
c = b64s.indexOf(t.charAt(n));
if (c >= 0) {
if (s) {
r.push(a | (c >> (6 - s)) & 255);
r.push(a | ((c >> (6 - s)) & 255));
}
s = (s + 2) & 7;
a = (c << s) & 255;