mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-27 14:51:56 +00:00
Run eslint --fix on lib/
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
7359b468e4
commit
b65ae091bd
3 changed files with 41 additions and 42 deletions
1
src/lib/library-ext.d.ts
vendored
1
src/lib/library-ext.d.ts
vendored
|
@ -1,6 +1,5 @@
|
|||
import { User } from './models'
|
||||
|
||||
|
||||
declare module 'express' {
|
||||
export interface Request {
|
||||
user?: User;
|
||||
|
|
|
@ -21,7 +21,7 @@ export function findNoteOrCreate (req, res, callback: (note: any) => void, inclu
|
|||
}
|
||||
}).then(function (note) {
|
||||
if (!note) {
|
||||
return newNote(req, res, "")
|
||||
return newNote(req, res, '')
|
||||
}
|
||||
if (!checkViewPermission(req, note)) {
|
||||
return errors.errorForbidden(res)
|
||||
|
|
Loading…
Reference in a new issue