mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-11-03 14:17:30 +00:00
Inline variables ( reduce redudancy )
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user