Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit fe255ff

Browse files
committed
not using destructuring
1 parent 888122a commit fe255ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/commands/ls.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const {print, rightpad} = require('../utils')
3+
const utils = require('../utils')
44
const Unixfs = require('ipfs-unixfs')
55

66
module.exports = {
@@ -51,8 +51,8 @@ module.exports = {
5151
const sizeWidth = Math.max.apply(null, links.map((file) => String(file.size).length))
5252

5353
links.forEach((file) => {
54-
print(rightpad(file.multihash, multihashWidth + 1) +
55-
rightpad(file.size, sizeWidth + 1) +
54+
utils.print(utils.rightpad(file.multihash, multihashWidth + 1) +
55+
utils.rightpad(file.size, sizeWidth + 1) +
5656
file.name)
5757
})
5858
})

0 commit comments

Comments
 (0)