mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 07:21:02 -04:00
enable and auto-fix prefer-template rule
This commit is contained in:
parent
c43b67ea90
commit
0dafc6553c
42 changed files with 496 additions and 493 deletions
|
@ -81,7 +81,7 @@ Ingredient.prepare = function(data, type) {
|
|||
number = parseFloat(data);
|
||||
if (isNaN(number)) {
|
||||
const sample = Utils.truncate(data.toString(), 10);
|
||||
throw "Invalid ingredient value. Not a number: " + sample;
|
||||
throw `Invalid ingredient value. Not a number: ${sample}`;
|
||||
}
|
||||
return number;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue