Skip to content

Commit 468f066

Browse files
Update huffman.js
1 parent 8e75b36 commit 468f066

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

assets/js/File_Zipper_js/huffman.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ class HuffmanCoder{
2929
let res = String(index*2)+" <= "+index+" => "+String(index*2+1);
3030
return res + '\n' + left + '\n' + right;
3131
}
32-
33-
destringify(data){
32+
destringify(data){
3433
let node = [];
35-
if(data[this.ind]==='\'){
34+
if(data[this.ind]==='\''){
3635
this.ind++;
3736
node.push(data[this.ind]);
3837
this.ind++;
@@ -49,6 +48,7 @@ class HuffmanCoder{
4948
return node;
5049
}
5150

51+
5252
getMappings(node, path){
5353
if(typeof(node[1])==="string"){
5454
this.mappings[node[1]] = path;

0 commit comments

Comments
 (0)