weareinreach / InReach

Local variable name shadows variable in outer scope JS-0123
Bug risk
Minor
1 occurrence in this check
'path' is already declared in the upper scope on line 13 column 8
 36 * @param {string} path
 37 * @returns Full URL or relative path
 38 */
 39const getUrl = (path) => { 40	if (typeof path !== 'string') throw new Error('Path must be a string')
 41	const parsedPath = path.charAt(0) === '/' ? path : `/${path}`
 42	if (typeof window !== 'undefined') return parsedPath // browser should use relative url