File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,12 @@ function sanitizeHeaders(options) {
3636
3737 const hasExternalLink = Object . keys ( queryObject ) . some ( function ( queryParam ) {
3838 const values = _ . isArray ( queryObject [ queryParam ] ) ? queryObject [ queryParam ] : [ queryObject [ queryParam ] ]
39- const v = values . map ( v => {
39+ return values . map ( v => {
4040 const qUrl = url . parse ( v ) ;
4141
4242 // external link if protocol || host || port is different
4343 return ( ! ! qUrl . host && ( qUrl . protocol !== urlObject . protocol || qUrl . host !== urlObject . host || qUrl . port !== urlObject . port ) ) ;
44- } )
45- return v . some ( v => v === true )
44+ } ) . some ( v => v === true )
4645 } ) ;
4746
4847 if ( hasExternalLink && options . hasOwnProperty ( "headers" ) && typeof ( options . headers ) === "object" ) {
You can’t perform that action at this time.
0 commit comments