Skip to content

Commit bd056a7

Browse files
authored
Update resume.js
1 parent 0369cee commit bd056a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qiniu/storage/resume.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function putReq(config, uploadToken, key, rsStream, rsStreamLen, putExtra,
143143
} catch (e) {}
144144
}
145145

146-
var isend = rsStream._readableState.ended;
146+
var isEnd = rsStream._readableState.ended;
147147

148148
//check when to mkblk
149149
rsStream.on('data', function(chunk) {
@@ -181,7 +181,7 @@ function putReq(config, uploadToken, key, rsStream, rsStreamLen, putExtra,
181181
}
182182

183183
rsStream.resume();
184-
if (isend) {
184+
if (isEnd) {
185185
mkfileReq(upDomain, uploadToken, fileSize, finishedCtxList, key, putExtra, callbackFunc);
186186
}
187187
}
@@ -193,7 +193,7 @@ function putReq(config, uploadToken, key, rsStream, rsStreamLen, putExtra,
193193
//check when to mkfile
194194
rsStream.on('end', function() {
195195
//console.log("end");
196-
if (!isend) {
196+
if (!isEnd) {
197197
mkfileReq(upDomain, uploadToken, fileSize, finishedCtxList, key,
198198
putExtra, callbackFunc);
199199
}

0 commit comments

Comments
 (0)