Skip to content

Commit

Permalink
Merge pull request #20 from rii-mango/FIX/fflate
Browse files Browse the repository at this point in the history
Fix/fflate
  • Loading branch information
hanayik authored Mar 16, 2023
2 parents 8ed2418 + a628d19 commit d1893ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nifti-reader-js",
"version": "0.6.0",
"version": "0.6.1",
"description": "A JavaScript NIfTI file format reader.",
"main": "src/nifti.js",
"directories": {
Expand Down
3 changes: 2 additions & 1 deletion src/nifti.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ nifti.isCompressed = function (data) {
* @returns {ArrayBuffer}
*/
nifti.decompress = function (data) {
return fflate.decompressSync(new Uint8Array(data)).buffer;
const decompressed = fflate.decompressSync(new Uint8Array(data)).buffer;
return decompressed
};


Expand Down

0 comments on commit d1893ab

Please sign in to comment.