File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ class DecodeCitrixCTX1 extends Operation {
3333 * @returns {string }
3434 */
3535 run ( input , args ) {
36- if ( input . length % 4 != 0 ) {
36+ if ( input . length % 4 !== 0 ) {
3737 return "" ;
3838 }
39- let revinput = input . reverse ( ) ;
40- let result = [ ] ;
39+ const revinput = input . reverse ( ) ;
40+ const result = [ ] ;
4141 let temp = 0 ;
4242 for ( let i = 0 ; i < revinput . length ; i += 2 ) {
4343 if ( i + 2 >= revinput . length ) {
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ class EncodeCitrixCTX1 extends Operation {
3333 * @returns {byteArray }
3434 */
3535 run ( input , args ) {
36- let utf16pass = Buffer . from ( cptable . utils . encode ( 1200 , input ) ) ;
37- let result = [ ] ;
36+ const utf16pass = Buffer . from ( cptable . utils . encode ( 1200 , input ) ) ;
37+ const result = [ ] ;
3838 let temp = 0 ;
3939 for ( let i = 0 ; i < utf16pass . length ; i ++ ) {
4040 temp = utf16pass [ i ] ^ 0xa5 ^ temp ;
You can’t perform that action at this time.
0 commit comments