Skip to content

Return empty a empty stream for zero sized blob #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

jimmywarting
Copy link
Contributor

@jimmywarting jimmywarting commented Apr 26, 2021

createReadStream(x, {start:0, end:0}) throws a out of bound error - so just return a empty stream instead

@codecov
Copy link

codecov bot commented Apr 26, 2021

Codecov Report

Merging #86 (d03f6cd) into master (483973c) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #86   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          234       238    +4     
  Branches        38        40    +2     
=========================================
+ Hits           234       238    +4     
Impacted Files Coverage Δ
from.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 483973c...d03f6cd. Read the comment docs.

## next
- Fixed a bug where in BlobDataItem when the file was empty (#86)

## v2.1.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, the changelog got out of sync with the actual changes. The changes mentioned in 2.1.1 were actually made in 2.1.2, so the next version would have what you currently mentioned in 2.1.2 and the actual 2.1.2 changes has to be taken from 2.1.1 section.

@jimmywarting jimmywarting merged commit a8fed4e into master Apr 29, 2021
@jimmywarting jimmywarting deleted the handle-empty-file-size branch April 29, 2021 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants