aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-file-system.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-22 05:18:59 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-22 05:18:59 +0200
commit8b751316b4657707499ded35988f5ff53b423fe5 (patch)
tree935dc74a789c7c7af31e42c3ee134c912e7786ca /src/js/arching-kaos-file-system.js
parent694f83921c5c43de47ce1b7298fbadcdd7a7a012 (diff)
downloadarching-kaos-web-ui-8b751316b4657707499ded35988f5ff53b423fe5.tar.gz
arching-kaos-web-ui-8b751316b4657707499ded35988f5ff53b423fe5.tar.bz2
arching-kaos-web-ui-8b751316b4657707499ded35988f5ff53b423fe5.zip
Do the checks right
Diffstat (limited to 'src/js/arching-kaos-file-system.js')
-rw-r--r--src/js/arching-kaos-file-system.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/js/arching-kaos-file-system.js b/src/js/arching-kaos-file-system.js
index c629ce4..3c66cc2 100644
--- a/src/js/arching-kaos-file-system.js
+++ b/src/js/arching-kaos-file-system.js
@@ -79,21 +79,21 @@ function akfsSerializeChunks(hash)
{
final_array_seq.push(hash);
}
- else
+ else if ( thingy.leafs[hash] !== undefined )
{
- if ( thingy.leafs[hash] !== undefined )
+ if ( thingy.leafs[hash].head !== undefined )
{
- console.log(`The following hash is failing: ${hash}`)
- if ( thingy.leafs[hash].head !== undefined )
- {
- akfsSerializeChunks(thingy.leafs[hash].head);
- }
+ akfsSerializeChunks(thingy.leafs[hash].head);
}
if ( thingy.leafs[hash].head !== thingy.leafs[hash].tail )
{
akfsSerializeChunks(thingy.leafs[hash].tail);
}
}
+ else
+ {
+ console.log(`The following hash is failing: ${hash}`)
+ }
}
function makeUpData()