Skip to content

Commit 330d9e7

Browse files
fsdiogoAlan Shaw
authored and
Alan Shaw
committed
refactor: use Object.assign instead of spread operator (ipfs#913)
1 parent 008e353 commit 330d9e7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/files-mfs/ls-readable-stream.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ module.exports = (send) => {
3636
send({
3737
path: 'files/ls',
3838
args: args,
39-
qs: {
40-
...opts,
41-
stream: true
42-
}
39+
qs: Object.assign({}, opts, { stream: true })
4340
}, (err, res) => {
4441
if (err) {
4542
return output.destroy(err)

0 commit comments

Comments
 (0)