From f621a740622c5a15776b2aec4149dc5b7677424a Mon Sep 17 00:00:00 2001 From: G r e y Date: Sat, 8 Aug 2020 21:52:14 -0500 Subject: [PATCH] Simplify HttpError This change is cosmetic * Remove public keyword - public by default * Remove details - this was unused throughout the entire codebase --- src/common/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/http.ts b/src/common/http.ts index 4749247d..453fae33 100644 --- a/src/common/http.ts +++ b/src/common/http.ts @@ -9,7 +9,7 @@ export enum HttpCode { } export class HttpError extends Error { - public constructor(message: string, public readonly code: number, public readonly details?: object) { + constructor(message: string, public readonly code: number) { super(message) this.name = this.constructor.name }