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

Commit 853b614

Browse files
committed
docs: some nitpicks on the README
1 parent 6a7d5ef commit 853b614

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,13 @@ ipfs.util.addFromFs('path/to/a/folder', { recursive: true , ignore: ['subfolder/
307307
`result` is an array of objects describing the files that were added, such as:
308308
309309
```
310-
[{
311-
path: 'test-folder',
312-
hash: 'QmRNjDeKStKGTQXnJ2NFqeQ9oW23WcpbmvCVrpDHgDg3T6',
313-
size: 2278
314-
},
315-
// ...
310+
[
311+
{
312+
path: 'test-folder',
313+
hash: 'QmRNjDeKStKGTQXnJ2NFqeQ9oW23WcpbmvCVrpDHgDg3T6',
314+
size: 2278
315+
},
316+
// ...
316317
]
317318
```
318319
@@ -351,11 +352,11 @@ If you do not pass in a callback all API functions will return a `Promise`. For
351352
352353
```js
353354
ipfs.id()
354-
.then(function (id) {
355+
.then((id) => {
355356
console.log('my id is: ', id)
356357
})
357-
.catch(function(err) {
358-
console.log('Fail: ', err)
358+
.catch((err) => {
359+
console.log('Fail: ', err)
359360
})
360361
```
361362

0 commit comments

Comments
 (0)