Compare commits

...

1 Commits

Author SHA1 Message Date
G r e y f621a74062
Simplify HttpError
This change is cosmetic

* Remove public keyword - public by default
* Remove details - this was unused throughout the entire codebase
2020-08-08 21:55:35 -05:00

View File

@ -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
}