diff --git a/lib/web/note/actions.ts b/lib/web/note/actions.ts index 6a97e0d3f..f66eff111 100644 --- a/lib/web/note/actions.ts +++ b/lib/web/note/actions.ts @@ -66,13 +66,15 @@ export function getRevision (req: any, res: Response, note: Note): void { res.send(content) }) } else { - errors.errorNotFound(res)return + errors.errorNotFound(res) + return } } else { Revision.getNoteRevisions(note, function (err, data) { if (err) { logger.error(err) - errors.errorInternalError(res)return + errors.errorInternalError(res) + return } const out = { revision: data