Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
chore: change formatting as per review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala authored and vmx committed Jul 9, 2020
1 parent f85de20 commit c28ca60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dag-node/dagNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DAGNode {
throw new Error('Passed \'serializedSize\' must be a number!')
}

links = links.map(link => {
links = links.map((link) => {
return DAGLink.isDAGLink(link)
? link
: DAGLink.util.createDagLinkFromB58EncodedHash(link)
Expand Down
4 changes: 2 additions & 2 deletions src/dag-node/rmLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const rmLink = (dagNode, nameOrCid) => {

// It's a name
if (typeof nameOrCid === 'string') {
predicate = link => link.Name === nameOrCid
predicate = (link) => link.Name === nameOrCid
} else if (Buffer.isBuffer(nameOrCid) || CID.isCID(nameOrCid)) {
predicate = link => link.Hash.equals(nameOrCid)
predicate = (link) => link.Hash.equals(nameOrCid)
}

if (predicate) {
Expand Down

0 comments on commit c28ca60

Please sign in to comment.