diff --git a/lib/utils/fun.js b/lib/utils/fun.js index cf0ca68..4c79cfa 100644 --- a/lib/utils/fun.js +++ b/lib/utils/fun.js @@ -6,14 +6,14 @@ const isDefined = (v) => v && (typeof v) != "undefined"; const isDefinedOrThrow = (v, t) => (isDefined(v) ? () => true - : (() => {throw t})()); + : (() => {throw t;})()); const isStringOrObjectOrThrow = (v, t) => (isString(v) ? true : isObject(v) ? true - : (() => {throw t})()); + : (() => {throw t;})()); module.exports = { isString : isString,