enable and auto-fix prefer-template rule

This commit is contained in:
Thomas Grainger 2017-05-08 21:15:25 +01:00
parent c43b67ea90
commit 0dafc6553c
No known key found for this signature in database
GPG key ID: 995EA0A029283160
42 changed files with 496 additions and 493 deletions

View file

@ -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: