Skip to content

Commit

Permalink
fixed error when updating checksum in AbstractDataProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Jul 7, 2022
1 parent 8170b17 commit 879636a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "armarius",
"version": "1.4.1",
"version": "1.4.2",
"description": "A JavaScript library to read, write, and merge ZIP archives in web browsers.",
"repository": "github:aternosorg/armarius",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/DataProcessor/AbstractDataProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class AbstractDataProcessor extends DataProcessor {
*/
async read(length) {
let chunk = await this.generate(length);
if(this.postCrc) {
if(this.postCrc && chunk !== null) {
this.postCrc.add(chunk);
}

Expand Down

0 comments on commit 879636a

Please sign in to comment.