Updated eslint whitespace rules

This commit is contained in:
n1474335 2017-02-09 15:09:33 +00:00
parent ebf2258715
commit e803d208e8
51 changed files with 801 additions and 793 deletions

View file

@ -100,7 +100,7 @@ Dish.enumLookup = function(typeEnum) {
Dish.prototype.set = function(value, type) {
this.value = value;
this.type = type;
if (!this.valid()) {
var sample = Utils.truncate(JSON.stringify(this.value), 13);
throw "Data is not a valid " + Dish.enumLookup(type) + ": " + sample;
@ -145,7 +145,7 @@ Dish.prototype.translate = function(toType) {
default:
break;
}
// Convert from byteArray to toType
switch (toType) {
case Dish.STRING:
@ -175,7 +175,7 @@ Dish.prototype.valid = function() {
if (!(this.value instanceof Array)) {
return false;
}
// Check that every value is a number between 0 - 255
for (var i = 0; i < this.value.length; i++) {
if (typeof this.value[i] != "number" ||