Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 2704b15

Browse files
committed
feat(server): fix lint type errors for normalizing server URLs
1 parent acd6881 commit 2704b15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/server/src/services/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export function safeExtractMessageAndStackFromError(err: unknown): [errMessage:
382382
* @param url The URL to normalize
383383
* @returns The normalized URL without trailing slashes
384384
*/
385-
export function normalizeUrl(url: string): string {
385+
export function normalizeUrl(url: string | null | undefined): string | null | undefined {
386386
if (!url || typeof url !== 'string') {
387387
return url;
388388
}
@@ -412,7 +412,7 @@ export function normalizeUrl(url: string): string {
412412
* @param pattern The original pattern from customRequestHandler attribute
413413
* @returns An array of patterns to match both with and without trailing slash
414414
*/
415-
export function normalizeCustomHandlerPattern(pattern: string): string[] {
415+
export function normalizeCustomHandlerPattern(pattern: string | null | undefined): (string | null | undefined)[] {
416416
if (!pattern || typeof pattern !== 'string') {
417417
return [pattern];
418418
}

0 commit comments

Comments
 (0)