mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-17 12:32:19 +00:00
FilesystemBackend: ESLint fixes
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
6e6ab84391
commit
db869418d4
1 changed files with 2 additions and 2 deletions
|
@ -21,11 +21,11 @@ export class FilesystemBackend implements MediaBackend {
|
|||
return ['/' + filePath, null];
|
||||
}
|
||||
|
||||
async deleteFile(fileName: string, backendData: BackendData): Promise<void> {
|
||||
async deleteFile(fileName: string, _: BackendData): Promise<void> {
|
||||
return fs.unlink(FilesystemBackend.getFilePath(fileName));
|
||||
}
|
||||
|
||||
getFileURL(fileName: string, backendData: BackendData): Promise<string> {
|
||||
getFileURL(fileName: string, _: BackendData): Promise<string> {
|
||||
const filePath = FilesystemBackend.getFilePath(fileName);
|
||||
// TODO: Add server address to url
|
||||
return Promise.resolve('/' + filePath);
|
||||
|
|
Loading…
Reference in a new issue