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

Prefer const over let #82

Merged
merged 1 commit into from Oct 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/resolver.js
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
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