File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ define(['module'], function (module) {
60
60
61
61
return ( ! uProtocol || uProtocol === location . protocol ) &&
62
62
( ! uHostName || uHostName . toLowerCase ( ) === location . hostname . toLowerCase ( ) ) &&
63
- ( ( ! uPort && ! uHostName ) || uPort === location . port ) ;
63
+ ( ! uPort && ! uHostName || uPort === location . port ) ;
64
64
}
65
65
66
66
/**
@@ -89,13 +89,15 @@ define(['module'], function (module) {
89
89
header ,
90
90
errorHandler = fail || Function ( ) ;
91
91
92
+ /*eslint max-depth:0*/
92
93
if ( 'setRequestHeader' in xhr && headers ) {
93
94
for ( header in headers ) {
94
95
if ( headers . hasOwnProperty ( header ) ) {
95
96
xhr . setRequestHeader ( header . toLowerCase ( ) , headers [ header ] ) ;
96
97
}
97
98
}
98
99
}
100
+ /*eslint max-depth:[2, 2]*/
99
101
100
102
if ( defaultConfig . onXhr ) {
101
103
defaultConfig . onXhr ( xhr , url ) ;
You can’t perform that action at this time.
0 commit comments