Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 579ea56

Browse files
committed
fix: async.map -> map
1 parent 1386b65 commit 579ea56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/files-regular/refs-tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const async = require('async')
4+
const map = require('async/map')
55
const { getDescribe, getIt, expect } = require('../utils/mocha')
66

77
module.exports = (createCommon, suiteName, ipfsRefs, options) => {
@@ -297,7 +297,7 @@ function loadContent (ipfs, node, callback) {
297297
if (typeof node === 'object') {
298298
const entries = Object.entries(node)
299299
const sorted = entries.sort((a, b) => a[0] > b[0] ? 1 : a[0] < b[0] ? -1 : 0)
300-
async.map(sorted, ([name, child], cb) => {
300+
map(sorted, ([name, child], cb) => {
301301
loadContent(ipfs, child, (err, cid) => {
302302
cb(err, { name, cid: cid && cid.toString() })
303303
})

0 commit comments

Comments
 (0)