From 8ce539a89e866da7915eadafb2c8244e48e37bce Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 30 May 2018 18:49:48 +0200 Subject: [PATCH] lint compliance --- rpc.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpc.js b/rpc.js index 89ed726b8..c21bee11f 100644 --- a/rpc.js +++ b/rpc.js @@ -36,6 +36,7 @@ var isValidId = function (chan) { [32, 48].indexOf(chan.length) > -1; }; +/* var uint8ArrayToHex = function (a) { // call slice so Uint8Arrays work as expected return Array.prototype.slice.call(a).map(function (e) { @@ -52,6 +53,7 @@ var uint8ArrayToHex = function (a) { } }).join(''); }; +*/ var testFileId = function (id) { if (id.length !== 48 || /[^a-f0-9]/.test(id)) { @@ -59,6 +61,8 @@ var testFileId = function (id) { } return true; }; + +/* var createFileId = function () { var id = uint8ArrayToHex(Nacl.randomBytes(24)); if (!testFileId(id)) { @@ -66,6 +70,7 @@ var createFileId = function () { } return id; }; +*/ var makeToken = function () { return Number(Math.floor(Math.random() * Number.MAX_SAFE_INTEGER))