2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-14 07:13:18 +00:00

autofix no-var

This commit is contained in:
Thomas Grainger
2017-04-13 18:08:50 +01:00
parent 31e5d785fe
commit b33f73ac9a
61 changed files with 699 additions and 698 deletions

View File

@@ -23,10 +23,10 @@ const NetBIOS = {
* @returns {byteArray}
*/
runEncodeName: function(input, args) {
var output = [],
let output = [],
offset = args[0];
for (var i = 0; i < input.length; i++) {
for (let i = 0; i < input.length; i++) {
output.push((input[i] >> 4) + offset);
output.push((input[i] & 0xf) + offset);
}
@@ -43,10 +43,10 @@ const NetBIOS = {
* @returns {byteArray}
*/
runDecodeName: function(input, args) {
var output = [],
let output = [],
offset = args[0];
for (var i = 0; i < input.length; i += 2) {
for (let i = 0; i < input.length; i += 2) {
output.push(((input[i] - offset) << 4) |
((input[i + 1] - offset) & 0xf));
}