未验证 提交 f621a740 编写于 作者: G G r e y

Simplify HttpError

This change is cosmetic

* Remove public keyword - public by default
* Remove details - this was unused throughout the entire codebase
上级 c78d1649
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册