aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/files.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files.ts b/src/files.ts
index 7b44c63..7e2955c 100644
--- a/src/files.ts
+++ b/src/files.ts
@@ -97,7 +97,7 @@ const readableStream: (
): fs.ReadStream => {
const options: object = {
start: Number(offset ? offset : 0),
- end: offset && length ? offset + length : undefined
+ end: Number(offset && length ? offset + length : undefined)
};
return fs.createReadStream(path(filename, projectName, view), options);
};