From b64824252b7f05ced096986002116f903d82d9b9 Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 23 May 2019 14:27:17 +0800 Subject: [PATCH] fix: remove unused promiseToCallback and trailing whitespace --- src/query/index.js | 1 - src/query/path.js | 2 +- src/query/run.js | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/query/index.js b/src/query/index.js index 12183719..8a9628f7 100644 --- a/src/query/index.js +++ b/src/query/index.js @@ -1,7 +1,6 @@ 'use strict' const mh = require('multihashes') -const promiseToCallback = require('promise-to-callback') const utils = require('../utils') const Run = require('./run') diff --git a/src/query/path.js b/src/query/path.js index 18ccaae1..ac5df066 100644 --- a/src/query/path.js +++ b/src/query/path.js @@ -49,7 +49,7 @@ class Path { * Execute the path. * * @returns {Promise} - * + * */ async execute () { // Create a queue of peers ordered by distance from the key diff --git a/src/query/run.js b/src/query/run.js index f29862ee..a85c5cc3 100644 --- a/src/query/run.js +++ b/src/query/run.js @@ -3,7 +3,6 @@ const PeerDistanceList = require('../peer-distance-list') const EventEmitter = require('events') const promisify = require('promisify-es6') -const promiseToCallback = require('promise-to-callback') const Path = require('./path') const WorkerQueue = require('./workerQueue') @@ -132,7 +131,7 @@ class Run extends EventEmitter { * Create and start a worker queue for a particular path. * * @param {Path} path - * @returns {Promise} + * @returns {Promise} */ async startWorker (path) { const worker = new WorkerQueue(this.query.dht, this, path, this.query._log)