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

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider authored and daviddias committed Nov 17, 2017
1 parent bdc0729 commit eefad2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/http/api/resources/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const fileTypeMap = {
dir: 'Directory'
}

function toFileObject(file) {
function toFileObject (file) {
const fo = {
Hash: toB58String(file.hash),
Size: file.size,
Expand All @@ -25,7 +25,7 @@ function toFileObject(file) {
if (fo.Hash !== file.name) {
fo.Name = file.name
}
return fo;
return fo
}

// common pre request handler that parses the args and returns `key` which is assigned to `request.pre.args`
Expand Down Expand Up @@ -99,7 +99,7 @@ exports.ls = {
let id = toB58String(file.hash)
res.Arguments[path] = id
res.Objects[id] = toFileObject(file)
res.Objects[id].Links = file.type === 'file' ? null : links;
res.Objects[id].Links = file.type === 'file' ? null : links
} else {
links.push(toFileObject(file))
}
Expand Down

0 comments on commit eefad2d

Please sign in to comment.