From b3011bcb694d0415367de7e35b0dd764746ff3d2 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Mon, 16 May 2022 13:32:46 -0700 Subject: [PATCH] linting --- src/adapters/ipfs/index.js | 2 +- src/controllers/json-rpc/index.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/adapters/ipfs/index.js b/src/adapters/ipfs/index.js index 9bd886c..815dade 100644 --- a/src/adapters/ipfs/index.js +++ b/src/adapters/ipfs/index.js @@ -39,7 +39,7 @@ class IPFS { // Start ipfs-coord this.ipfsCoordAdapter = new this.IpfsCoordAdapter({ - ipfs: this.ipfs, + ipfs: this.ipfs // eventEmitter: this.eventEmitter }) await this.ipfsCoordAdapter.start() diff --git a/src/controllers/json-rpc/index.js b/src/controllers/json-rpc/index.js index 6936b65..f1c762c 100644 --- a/src/controllers/json-rpc/index.js +++ b/src/controllers/json-rpc/index.js @@ -99,8 +99,6 @@ class JSONRPC { } console.log(`parsedData: ${JSON.stringify(parsedData, null, 2)}`) - - // Added the property "from" to the parsedData object; // necessary for calculating rate limits (based on the IPFS ID). parsedData.from = from @@ -110,11 +108,11 @@ class JSONRPC { // Forward data on to bch adapter if this is the response of a BCH query. try { - if(parsedData.payload.result.method === 'bch') { - console.log(`routing to BCH adapter`) + if (parsedData.payload.result.method === 'bch') { + console.log('routing to BCH adapter') retObj = await _this.adapters.bch.rpcHandler(parsedData) } - } catch(err) { + } catch (err) { /* exit quietly */ }