strictNullChecks (#4666)
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
parent
4ee40c3345
commit
987168b863
214 changed files with 939 additions and 785 deletions
|
@ -50,7 +50,7 @@ export default async function(ctx: Koa.BaseContext) {
|
|||
ctx.set('Content-Disposition', contentDisposition('attachment', `${file.name}`));
|
||||
}
|
||||
|
||||
const readable = InternalStorage.read(file.accessKey);
|
||||
const readable = InternalStorage.read(file.accessKey!);
|
||||
readable.on('error', commonReadableHandlerGenerator(ctx));
|
||||
ctx.set('Content-Type', file.type);
|
||||
ctx.body = readable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue