diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/files.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files.ts b/src/files.ts index 72947e9..7b44c63 100644 --- a/src/files.ts +++ b/src/files.ts @@ -96,7 +96,7 @@ const readableStream: ( view?: ViewName ): fs.ReadStream => { const options: object = { - start: offset ? offset : 0, + start: Number(offset ? offset : 0), end: offset && length ? offset + length : undefined }; return fs.createReadStream(path(filename, projectName, view), options); |
