File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
lib/templateCompilerModules Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,10 @@ export function urlToRequire(
62
62
function parseUriParts ( urlString : string ) : UrlWithStringQuery {
63
63
// initialize return value
64
64
const returnValue : UrlWithStringQuery = uriParse ( '' )
65
- if ( urlString ) {
66
- // A TypeError is thrown if urlString is not a string
67
- // @see https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost
68
- if ( 'string' === typeof urlString ) {
69
- // check is an uri
70
- return uriParse ( urlString ) // take apart the uri
71
- }
65
+ // A TypeError is thrown if urlString is not a string
66
+ // @see https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost
67
+ if ( urlString && 'string' === typeof urlString ) {
68
+ return uriParse ( urlString ) // take apart the uri
72
69
}
73
70
return returnValue
74
71
}
You can’t perform that action at this time.
0 commit comments