autofix no-var

This commit is contained in:
Thomas Grainger 2017-04-13 18:08:50 +01:00
parent 31e5d785fe
commit b33f73ac9a
No known key found for this signature in database
GPG key ID: 995EA0A029283160
61 changed files with 699 additions and 698 deletions

View file

@ -11,7 +11,7 @@ import Utils from "./Utils.js";
* @class
* @param {Object} ingredientConfig
*/
var Ingredient = function(ingredientConfig) {
const Ingredient = function(ingredientConfig) {
this.name = "";
this.type = "";
this.value = null;
@ -78,7 +78,7 @@ Ingredient.prepare = function(data, type) {
case "number":
var number = parseFloat(data);
if (isNaN(number)) {
var sample = Utils.truncate(data.toString(), 10);
const sample = Utils.truncate(data.toString(), 10);
throw "Invalid ingredient value. Not a number: " + sample;
}
return number;