Fixed lint issues

This commit is contained in:
Brian Whitney 2018-11-20 11:24:50 -05:00
parent 215e7a5f5d
commit c378bcb00b
2 changed files with 5 additions and 5 deletions

View file

@ -33,11 +33,11 @@ class DecodeCitrixCTX1 extends Operation {
* @returns {string}
*/
run(input, args) {
if (input.length % 4 != 0) {
if (input.length % 4 !== 0) {
return "";
}
let revinput = input.reverse();
let result = [];
const revinput = input.reverse();
const result = [];
let temp = 0;
for (let i = 0; i < revinput.length; i+=2) {
if (i+2 >= revinput.length) {

View file

@ -33,8 +33,8 @@ class EncodeCitrixCTX1 extends Operation {
* @returns {byteArray}
*/
run(input, args) {
let utf16pass = Buffer.from(cptable.utils.encode(1200, input));
let result = [];
const utf16pass = Buffer.from(cptable.utils.encode(1200, input));
const result = [];
let temp = 0;
for (let i = 0; i < utf16pass.length; i++) {
temp = utf16pass[i] ^ 0xa5 ^ temp;