Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: handle progress for empty files #3260

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

achingbrain
Copy link
Member

When a file is empty the progress event will have a Bytes property that is 0 so test if the property is not undefined rather than if it is truthy.

Fixes #3255

When a file is empty the progress event will have a `Bytes` property
that is `0` so test if the property is not undefined rather than if
it is truthy.

Fixes #3255
@achingbrain achingbrain merged commit 9c36cb8 into master Sep 2, 2020
@achingbrain achingbrain deleted the fix/handle-progress-for-empty-files branch September 2, 2020 11:18
SgtPooki referenced this pull request in ipfs/js-kubo-rpc-client Aug 18, 2022
When a file is empty the progress event will have a `Bytes` property
that is `0` so test if the property is not undefined rather than if
it is truthy.

Fixes #3255
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jsipfs recursive add with duplicate empty files fails
2 participants