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

Commit

Permalink
refactor: prefer const over let (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU authored and vmx committed Oct 11, 2018
1 parent 0e9a2f8 commit 29411b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ exports.resolve = (binaryBlob, path, callback) => {

// out of scope
let value
let len = parts.length
const len = parts.length

for (let i = 0; i < len; i++) {
const partialPath = parts.shift()
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function replaceCIDbyTAG (dagNode) {
return tagCID(obj['/'])
} else if (keys.length > 0) {
// Recursive transform
let out = {}
const out = {}
keys.forEach((key) => {
if (typeof obj[key] === 'object') {
out[key] = transform(obj[key])
Expand Down

0 comments on commit 29411b2

Please sign in to comment.