Skip to content

Commit

Permalink
fix(sanitizeStatusCode): input is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 8, 2023
1 parent 67055fb commit 67a4132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sanitize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function sanitizeStatusMessage(statusMessage = ""): string {
}

export function sanitizeStatusCode(
statusCode: string | number,
statusCode?: string | number,
defaultStatusCode = 200,
): number {
if (!statusCode) {
Expand Down

0 comments on commit 67a4132

Please sign in to comment.