Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
fix: remove unused promiseToCallback and trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed May 23, 2019
1 parent 3e2908c commit ab31c10
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/query/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const mh = require('multihashes')
const promiseToCallback = require('promise-to-callback')

const utils = require('../utils')
const Run = require('./run')
Expand Down
2 changes: 1 addition & 1 deletion src/query/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Path {
* Execute the path.
*
* @returns {Promise}
*
*
*/
async execute () {
// Create a queue of peers ordered by distance from the key
Expand Down
3 changes: 1 addition & 2 deletions src/query/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -132,7 +131,7 @@ class Run extends EventEmitter {
* Create and start a worker queue for a particular path.
*
* @param {Path} path
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
async startWorker (path) {
const worker = new WorkerQueue(this.query.dht, this, path, this.query._log)
Expand Down

0 comments on commit ab31c10

Please sign in to comment.