diff --git a/lib/util.js b/lib/util.js index 30ebee42..2bc6aa0b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -50,7 +50,7 @@ name: name }); - throw(Error(msg)); + throw Error(msg); } return check; @@ -69,7 +69,7 @@ var is = Util.type(arg) === type; if (!is) - throw(Error(name + ' should be ' + type)); + throw Error(name + ' should be ' + type); return check; }; @@ -283,7 +283,7 @@ var ret = []; if (!Array.isArray(arr)) - throw(Error('arr should be array!')); + throw Error('arr should be array!'); ret = arr.map(function(item) { return item.name; @@ -302,10 +302,10 @@ var ret; if (!Array.isArray(array)) - throw(Error('array should be array!')); + throw Error('array should be array!'); if (typeof name !== 'string') - throw(Error('name should be string!')); + throw Error('name should be string!'); array.some(function(item) { var is = item.name === name,