refactor: Upgrade to eslint 9.19.0 (#9580)
This commit is contained in:
2
src/vendor/mongodbUrl.js
vendored
2
src/vendor/mongodbUrl.js
vendored
@@ -505,7 +505,7 @@ function urlFormat(obj) {
|
||||
if (typeof obj === 'string') { obj = urlParse(obj); }
|
||||
else if (typeof obj !== 'object' || obj === null)
|
||||
{ throw new TypeError(
|
||||
'Parameter "urlObj" must be an object, not ' + obj === null ? 'null' : typeof obj
|
||||
'Parameter "urlObj" must be an object, not ' + (obj === null ? 'null' : typeof obj)
|
||||
); }
|
||||
else if (!(obj instanceof Url)) { return Url.prototype.format.call(obj); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user