Skip to content
Snippets Groups Projects
Commit ee1c1af8 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix hash comparison

parent 11f21070
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ SyncTERMCache.prototype.upload = function (fname, cache_fname) ...@@ -94,7 +94,7 @@ SyncTERMCache.prototype.upload = function (fname, cache_fname)
if (idx !== -1) { if (idx !== -1) {
idx += 2; idx += 2;
idx += cache_fname.length; idx += cache_fname.length;
if (hash == lst.substr(idx, idx + 32)) { if (hash == lst.substr(idx, 32)) {
f.close(); f.close();
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment