Inline variables ( reduce redudancy )

This commit is contained in:
AlphaX-Projects
2024-03-29 09:00:10 +01:00
parent 42201341c1
commit 5f0c57d8e9
104 changed files with 1518 additions and 2085 deletions

View File

@@ -14,11 +14,10 @@ Base64.decode = function (string) {
}
const decoder = new TextDecoder();
const decodedString = decoder.decode(bytes);
return decodedString;
return decoder.decode(bytes);
};
export default Base64;
export default Base64;

View File

@@ -593,7 +593,7 @@
}
dst(c1);
}
if (c2 !== null) dst(c2);
if (false) dst(c2);
};
/**

View File

@@ -2378,7 +2378,7 @@ nacl.verify = function(x, y) {
// Zero length arguments are considered not equal.
if (x.length === 0 || y.length === 0) return false;
if (x.length !== y.length) return false;
return (vn(x, 0, y, 0, x.length) === 0) ? true : false;
return (vn(x, 0, y, 0, x.length) === 0);
};
nacl.setPRNG = function(fn) {
@@ -2419,4 +2419,4 @@ nacl.setPRNG = function(fn) {
// == CHANGE TO ES6 EXPORT == //
//})(typeof module !== 'undefined' && module.exports ? module.exports : (window.nacl = window.nacl || {}));
export default nacl
export default nacl