Skip to content

Commit

Permalink
remove unnecessary reference
Browse files Browse the repository at this point in the history
  • Loading branch information
DCtheTall committed Sep 24, 2018
1 parent b590c6d commit dd23cd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/util/assertString.js
Expand Up @@ -22,8 +22,7 @@ function assertString(input) {
invalidType = 'a ' + invalidType;
}
}
var message = 'Expected string but received ' + invalidType + '.';
throw new TypeError(message);
throw new TypeError('Expected string but received ' + invalidType + '.');
}
}
module.exports = exports['default'];
3 changes: 1 addition & 2 deletions src/lib/util/assertString.js
Expand Up @@ -13,7 +13,6 @@ export default function assertString(input) {
invalidType = `a ${invalidType}`;
}
}
let message = `Expected string but received ${invalidType}.`;
throw new TypeError(message);
throw new TypeError(`Expected string but received ${invalidType}.`);
}
}
3 changes: 1 addition & 2 deletions validator.js
Expand Up @@ -47,8 +47,7 @@ function assertString(input) {
invalidType = 'a ' + invalidType;
}
}
var message = 'Expected string but received ' + invalidType + '.';
throw new TypeError(message);
throw new TypeError('Expected string but received ' + invalidType + '.');
}
}

Expand Down

0 comments on commit dd23cd3

Please sign in to comment.