chore: lint issues fixed

This commit is contained in:
Vasco Santos 2020-10-07 17:58:11 +02:00
parent 2746b4b025
commit 722cacd6d2
3 changed files with 7 additions and 3 deletions

View File

@ -37,6 +37,7 @@ class Relay {
/** /**
* Start Relay service. * Start Relay service.
*
* @returns {void} * @returns {void}
*/ */
start () { start () {
@ -52,6 +53,7 @@ class Relay {
/** /**
* Stop Relay service. * Stop Relay service.
*
* @returns {void} * @returns {void}
*/ */
stop () { stop () {
@ -60,6 +62,7 @@ class Relay {
/** /**
* Advertise hop relay service in the network. * Advertise hop relay service in the network.
*
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
async _advertiseService () { async _advertiseService () {

View File

@ -22,7 +22,7 @@ class Circuit {
/** /**
* Creates an instance of the Circuit Transport. * Creates an instance of the Circuit Transport.
* *
* @constructor * @class
* @param {object} options * @param {object} options
* @param {Libp2p} options.libp2p * @param {Libp2p} options.libp2p
* @param {Upgrader} options.upgrader * @param {Upgrader} options.upgrader
@ -159,7 +159,7 @@ class Circuit {
* *
* @param {any} options * @param {any} options
* @param {Function} handler * @param {Function} handler
* @return {listener} * @returns {listener}
*/ */
createListener (options, handler) { createListener (options, handler) {
if (typeof options === 'function') { if (typeof options === 'function') {

View File

@ -5,8 +5,9 @@ const multihashing = require('multihashing-async')
/** /**
* Convert a namespace string into a cid. * Convert a namespace string into a cid.
*
* @param {string} namespace * @param {string} namespace
* @return {Promise<CID>} * @returns {Promise<CID>}
*/ */
module.exports.namespaceToCid = async (namespace) => { module.exports.namespaceToCid = async (namespace) => {
const bytes = new TextEncoder('utf8').encode(namespace) const bytes = new TextEncoder('utf8').encode(namespace)