mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
linting
This commit is contained in:
@@ -124,13 +124,13 @@ class IpfsRESTControllerLib {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async downloadFile(ctx) {
|
async downloadFile (ctx) {
|
||||||
try {
|
try {
|
||||||
const {cid} = ctx.params
|
const { cid } = ctx.params
|
||||||
|
|
||||||
const file = await this.adapters.ipfs.ipfs.blockstore.get(cid)
|
const file = await this.adapters.ipfs.ipfs.blockstore.get(cid)
|
||||||
return file
|
return file
|
||||||
} catch(err) {
|
} catch (err) {
|
||||||
wlogger.error('Error in ipfs/controller.js/downloadFile(): ', err)
|
wlogger.error('Error in ipfs/controller.js/downloadFile(): ', err)
|
||||||
this.handleError(ctx, err)
|
this.handleError(ctx, err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user