We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01bbd94 commit 22ecc66Copy full SHA for 22ecc66
from.js
@@ -23,7 +23,7 @@ class BlobDataItem {
23
constructor(options) {
24
this.size = options.size;
25
this.path = options.path;
26
- this.start = options.start;
+ this.start = options.start || 0;
27
this.mtime = options.mtime;
28
}
29
@@ -34,7 +34,7 @@ class BlobDataItem {
34
path: this.path,
35
start,
36
mtime: this.mtime,
37
- size: start ? end - start : end
+ size: end - start
38
});
39
40
@@ -45,7 +45,7 @@ class BlobDataItem {
45
46
return createReadStream(this.path, {
47
start: this.start,
48
- end: (this.start ? this.start + this.size : this.size) - 1
+ end: this.start + this.size - 1
49
50
51
0 commit comments