mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
fix: code formatting
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
ae9ec95a4e
commit
4d70ccafbc
13 changed files with 51 additions and 21 deletions
|
@ -11,7 +11,10 @@ import { ApiError } from './api-error'
|
|||
export class ErrorToI18nKeyMapper {
|
||||
private foundI18nKey: string | undefined = undefined
|
||||
|
||||
constructor(private apiError: Error, private i18nNamespace?: string) {}
|
||||
constructor(
|
||||
private apiError: Error,
|
||||
private i18nNamespace?: string
|
||||
) {}
|
||||
|
||||
public withHttpCode(code: number, i18nKey: string, treatAsAbsoluteKey?: boolean): this {
|
||||
if (this.foundI18nKey === undefined && this.apiError instanceof ApiError && this.apiError.statusCode === code) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue