Skip to content

Commit 4ed61fc

Browse files
committed
fix: ESLint
1 parent 4f9b873 commit 4ed61fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/url/extract-url.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { gosNREUMOriginals } from '../window/nreum'
1010
* @param {string|Request|URL} target - The target to extract the URL from. It can be a string, a Fetch Request object, or a URL object.
1111
* @returns {string|undefined} The extracted URL as a string, or undefined if the target type is not supported.
1212
*/
13-
export function extractUrl(target) {
14-
if (typeof target === 'string') return target
13+
export function extractUrl (target) {
14+
if (typeof target === 'string') return target
1515
else if (target instanceof gosNREUMOriginals().o.REQ) return target.url
1616
else if (globalScope?.URL && target instanceof URL) return target.href
1717
}

0 commit comments

Comments
 (0)