Skip to content

Commit 61c048f

Browse files
committed
fix: remove unused parameters
1 parent ab3b3b7 commit 61c048f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/app/src/features/router/RouteUrl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class RouteUrl {
8282
const pathKeys = this.extractPathKeys();
8383

8484
// Replace :param with actual values
85-
let url = this.replacePathParams(pathKeys);
85+
let url = this.replacePathParams();
8686

8787
// Handle empty url
8888
if (!url || url === "") {
@@ -158,7 +158,7 @@ export class RouteUrl {
158158
/**
159159
* Replace :param placeholders with actual values from params.
160160
*/
161-
private replacePathParams(pathKeys: Set<string>): string {
161+
private replacePathParams(): string {
162162
return this.pattern.replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, (_, key) => {
163163
const value = this.params![key];
164164
if (value === undefined || value === null) {

0 commit comments

Comments
 (0)