Skip to content

Commit

Permalink
Fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitn committed Nov 20, 2018
1 parent 215e7a5 commit c378bcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/core/operations/DecodeCitrixCTX1.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/core/operations/EncodeCitrixCTX1.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c378bcb

Please sign in to comment.