Skip to content

Commit 1ed55fb

Browse files
refactor: remove Object.assign and internals.tlds assert
1 parent 9a62741 commit 1ed55fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/types/string.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,7 @@ module.exports = Any.extend({
742742
internals.addressOptions = function (options) {
743743

744744
if (!options) {
745-
assert(internals.tlds, 'Built-in TLD list disabled');
746-
return Object.assign({}, options, internals.tlds);
745+
return internals.tlds;
747746
}
748747

749748
// minDomainSegments

0 commit comments

Comments
 (0)