mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
autofix no-var
This commit is contained in:
@@ -105,7 +105,7 @@ Dish.prototype.set = function(value, type) {
|
||||
this.type = type;
|
||||
|
||||
if (!this.valid()) {
|
||||
var sample = Utils.truncate(JSON.stringify(this.value), 13);
|
||||
const sample = Utils.truncate(JSON.stringify(this.value), 13);
|
||||
throw "Data is not a valid " + Dish.enumLookup(type) + ": " + sample;
|
||||
}
|
||||
};
|
||||
@@ -180,7 +180,7 @@ Dish.prototype.valid = function() {
|
||||
}
|
||||
|
||||
// Check that every value is a number between 0 - 255
|
||||
for (var i = 0; i < this.value.length; i++) {
|
||||
for (let i = 0; i < this.value.length; i++) {
|
||||
if (typeof this.value[i] != "number" ||
|
||||
this.value[i] < 0 ||
|
||||
this.value[i] > 255) {
|
||||
|
||||
Reference in New Issue
Block a user