Skip to content

Commit

Permalink
fix root size as 0 Bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
ananavati committed Oct 10, 2016
1 parent e69f3f5 commit c741837
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions json-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ module.exports = function jsonTree(json) {
fileName = fileName.slice(2);
}

rootSize += mod.size;

getFile(mod, fileName, root);
});

root.maxDepth = maxDepth;
root.size = rootSize;

return root;
}
Expand Down

0 comments on commit c741837

Please sign in to comment.