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

Commit e708a53

Browse files
fix: lint errors
1 parent 9cf1974 commit e708a53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/http/api/resources/file.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const fileTypeMap = {
1616
dir: 'Directory'
1717
}
1818

19-
function toFileObject(file) {
19+
function toFileObject (file) {
2020
const fo = {
2121
Hash: toB58String(file.hash),
2222
Size: file.size,
@@ -25,7 +25,7 @@ function toFileObject(file) {
2525
if (fo.Hash !== file.name) {
2626
fo.Name = file.name
2727
}
28-
return fo;
28+
return fo
2929
}
3030

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

0 commit comments

Comments
 (0)