Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fveracoechea committed Jul 2, 2023
1 parent 1866706 commit a05a672
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/src/core/Fetchtastic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ export class Fetchtastic {
const handlers = this.#catchers.get(status);
if (handlers && handlers.size > 0) {
handlers.add(catcher);
// this.#catchers.set(status, handlers);
} else {
this.#catchers.set(status, new Set([catcher]));
}
Expand Down
5 changes: 0 additions & 5 deletions lib/src/core/HttpError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,22 @@ export interface ErrorCatcher {
* including the request URL, HTTP method, response details, and error message.
*
* @extends Error
* @preserve
*/
export class HttpError extends Error {
/**
* HTTP status code associated with the error.
* @preserve
*/
status: number;
/**
* Indicates the HTTP method used in the failed request.
* @preserve
*/
method: HttpMethod;
/**
* Refers to the `Response` object received from the failed request.
* @preserve
*/
response: Response;
/**
* Stores the URL of the failed request.
* @preserve
*/
url: string;

Expand Down

0 comments on commit a05a672

Please sign in to comment.