File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 14
14
/*exported Qiniu */
15
15
/*exported QiniuJsSDK */
16
16
17
- ;
18
- ( function ( global ) {
17
+ ; ( function ( global ) {
19
18
20
19
/**
21
20
* Creates new cookie or removes cookie with negative expiration
185
184
waiting : 0 ,
186
185
processing : 1 ,
187
186
finished : 2
188
- }
187
+ } ;
189
188
190
189
/**
191
190
* send logs to statistics server
208
207
status : TaskStatus . waiting
209
208
} ) ;
210
209
logger . debug ( "[STATISTICS] send log to statistics server" , log ) ;
211
- }
210
+ } ;
212
211
213
212
function tick ( ) {
214
213
var unFinishedTasks = [ ] ;
259
258
UnknownHost : - 1003 ,
260
259
CannotConnectToHost : - 1004 ,
261
260
NetworkConnectionLost : - 1005
262
- }
261
+ } ;
263
262
264
263
/**
265
264
* reset upload url
608
607
}
609
608
return '{' + string . join ( ',' ) + '}' ;
610
609
}
610
+ break ;
611
611
case 'number' :
612
612
return obj ;
613
613
case false :
860
860
return groups ? groups [ 1 ] : "" ;
861
861
}
862
862
return "" ;
863
- }
863
+ } ;
864
864
865
865
var getPortFromUrl = function ( url ) {
866
866
if ( url && url . match ) {
867
- var groups = url . match ( / ( ^ h t t p s ? ) / )
867
+ var groups = url . match ( / ( ^ h t t p s ? ) / ) ;
868
868
if ( ! groups ) {
869
869
return "" ;
870
870
}
871
871
var type = groups [ 1 ] ;
872
872
groups = url . match ( / ^ h t t p s ? : \/ \/ ( [ ^ : ^ / ] * ) : ( \d * ) / ) ;
873
873
if ( groups ) {
874
874
return groups [ 2 ] ;
875
- } else if ( type == "http" ) {
875
+ } else if ( type === "http" ) {
876
876
return "80" ;
877
877
} else {
878
878
return "443" ;
879
879
}
880
880
}
881
881
return "" ;
882
- }
882
+ } ;
883
883
884
884
/********** inner function define end **********/
885
885
1355
1355
var req_id = matchedGroups [ 2 ] ;
1356
1356
var errcode = plupload . HTTP_ERROR ? err . status : err . code ;
1357
1357
statisticsLogger . log (
1358
- errcode == 0 ? ExtraErrors . NetworkError : errcode ,
1358
+ errcode === 0 ? ExtraErrors . NetworkError : errcode ,
1359
1359
req_id ,
1360
1360
getDomainFromUrl ( up . settings . url ) ,
1361
1361
undefined ,
1547
1547
) ;
1548
1548
}
1549
1549
}
1550
- } )
1550
+ } ) ;
1551
1551
1552
1552
logger . debug ( "bind FilesRemoved event" ) ;
1553
1553
You can’t perform that action at this time.
0 commit comments