Skip to content

Commit b28486c

Browse files
committed
fix: declared but never read variables
1 parent 59663b9 commit b28486c

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@
238238
- mm-jpoole
239239
- modex98
240240
- morleytatro
241+
- mrcwbr
241242
- ms10596
242243
- mspiess
243244
- mtendekuyokwa19

packages/react-router/lib/router/history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ export function createBrowserHistory(
373373
);
374374
}
375375

376-
function createBrowserHref(window: Window, to: To) {
376+
function createBrowserHref(_window: Window, to: To) {
377377
return typeof to === "string" ? to : createPath(to);
378378
}
379379

packages/react-router/lib/router/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,8 +1645,6 @@ export class ErrorResponseImpl implements ErrorResponse {
16451645
status: number;
16461646
statusText: string;
16471647
data: any;
1648-
private error?: Error;
1649-
private internal: boolean;
16501648

16511649
constructor(
16521650
status: number,
@@ -1656,10 +1654,8 @@ export class ErrorResponseImpl implements ErrorResponse {
16561654
) {
16571655
this.status = status;
16581656
this.statusText = statusText || "";
1659-
this.internal = internal;
16601657
if (data instanceof Error) {
16611658
this.data = data.toString();
1662-
this.error = data;
16631659
} else {
16641660
this.data = data;
16651661
}

0 commit comments

Comments
 (0)