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

Commit 62ff8fc

Browse files
committed
docs(examples): fix linting on git example
1 parent 6f5add1 commit 62ff8fc

File tree

1 file changed

+2
-3
lines changed
  • examples/traverse-ipld-graphs

1 file changed

+2
-3
lines changed

examples/traverse-ipld-graphs/git.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ createNode((err, ipfs) => {
4747

4848
const v1tag = 'z8mWaGfwSWLMPJ6Q2JdsAjGiXTf61Nbue'
4949

50-
function errOrLog(comment) {
50+
function errOrLog (comment) {
5151
return (err, result) => {
5252
if (err) {
5353
throw err
5454
}
5555

56-
if (Buffer.isBuffer(result.value)) { //Blobs (files) are returned as buffer instance
56+
if (Buffer.isBuffer(result.value)) { // Blobs (files) are returned as buffer instance
5757
result.value = result.value.toString()
5858
}
5959

@@ -63,7 +63,6 @@ createNode((err, ipfs) => {
6363
}
6464
}
6565

66-
6766
ipfs.dag.get(v1tag + '/', errOrLog('Tag object:'))
6867
ipfs.dag.get(v1tag + '/object/message', errOrLog('Tagged commit message:'))
6968
ipfs.dag.get(v1tag + '/object/parents/0/message', errOrLog('Parent of tagged commit:'))

0 commit comments

Comments
 (0)