Skip to content

Commit b75fad9

Browse files
committed
fix ci issue
1 parent 5529cb9 commit b75fad9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/qiniu.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
/*exported Qiniu */
1515
/*exported QiniuJsSDK */
1616

17-
;
18-
(function (global) {
17+
;(function (global) {
1918

2019
/**
2120
* Creates new cookie or removes cookie with negative expiration
@@ -185,7 +184,7 @@
185184
waiting: 0,
186185
processing: 1,
187186
finished: 2
188-
}
187+
};
189188

190189
/**
191190
* send logs to statistics server
@@ -208,7 +207,7 @@
208207
status: TaskStatus.waiting
209208
});
210209
logger.debug("[STATISTICS] send log to statistics server", log);
211-
}
210+
};
212211

213212
function tick() {
214213
var unFinishedTasks = [];
@@ -259,7 +258,7 @@
259258
UnknownHost: -1003,
260259
CannotConnectToHost: -1004,
261260
NetworkConnectionLost: -1005
262-
}
261+
};
263262

264263
/**
265264
* reset upload url
@@ -608,6 +607,7 @@
608607
}
609608
return '{' + string.join(',') + '}';
610609
}
610+
break;
611611
case 'number':
612612
return obj;
613613
case false:
@@ -860,26 +860,26 @@
860860
return groups ? groups[1] : "";
861861
}
862862
return "";
863-
}
863+
};
864864

865865
var getPortFromUrl = function (url) {
866866
if (url && url.match) {
867-
var groups = url.match(/(^https?)/)
867+
var groups = url.match(/(^https?)/);
868868
if (!groups) {
869869
return "";
870870
}
871871
var type = groups[1];
872872
groups = url.match(/^https?:\/\/([^:^/]*):(\d*)/);
873873
if (groups) {
874874
return groups[2];
875-
} else if (type == "http") {
875+
} else if (type === "http") {
876876
return "80";
877877
} else {
878878
return "443";
879879
}
880880
}
881881
return "";
882-
}
882+
};
883883

884884
/********** inner function define end **********/
885885

@@ -1355,7 +1355,7 @@
13551355
var req_id = matchedGroups[2];
13561356
var errcode = plupload.HTTP_ERROR ? err.status : err.code;
13571357
statisticsLogger.log(
1358-
errcode == 0 ? ExtraErrors.NetworkError : errcode,
1358+
errcode === 0 ? ExtraErrors.NetworkError : errcode,
13591359
req_id,
13601360
getDomainFromUrl(up.settings.url),
13611361
undefined,
@@ -1547,7 +1547,7 @@
15471547
);
15481548
}
15491549
}
1550-
})
1550+
});
15511551

15521552
logger.debug("bind FilesRemoved event");
15531553

0 commit comments

Comments
 (0)