refactor: Upgrade to eslint 9.19.0 (#9580)

This commit is contained in:
Daniel
2025-02-02 01:32:43 +11:00
committed by GitHub
parent 239e692145
commit 889dbb5aee
18 changed files with 1265 additions and 770 deletions

View File

@@ -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); }