Skip to content

Commit a32cb25

Browse files
committed
refactor(library/HTTP): prefers parameter properties in HTTP.Endpoint.ResponseError
1 parent c0151f7 commit a32cb25

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/library/HTTP/Endpoint/ResponseError.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@ class HTTP_Endpoint_ResponseError
88
extends Attempt.ActionableError<
99
'HTTP_Endpoint_ResponseError'
1010
> {
11-
public readonly status: HTTP_Response.StatusCode.Error.Any;
12-
1311
public constructor(
1412
givenMessage: string,
15-
givenStatus: HTTP_Response.StatusCode.Error.Any,
13+
public readonly status: HTTP_Response.StatusCode.Error.Any,
1614
) {
1715
super(givenMessage);
1816
this.name = 'HTTP_Endpoint_ResponseError';
19-
this.status = givenStatus;
2017
}
2118
}
2219

0 commit comments

Comments
 (0)