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 70ddc02 commit 6e063eaCopy full SHA for 6e063ea
lib/ldp.js
@@ -373,7 +373,7 @@ class LDP {
373
try {
374
releaseLock = await lock(path, { retries: 10 })
375
return await new Promise((resolve, reject) => {
376
- const stream = fs.createReadStream(path, start && end && {start, end})
+ const stream = fs.createReadStream(path, start && end ? {start, end} : {})
377
stream
378
.on('error', function (err) {
379
debug.handlers(`GET -- error reading ${path}: ${err.message}`)
0 commit comments