Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leon19 committed Jan 14, 2025
1 parent f69c412 commit 4c908e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webhooks/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ function addPort(parsedUrl: URL): string {
@returns URL without port
*/
function removePort(parsedUrl: URL): string {
parsedUrl = new URL(parsedUrl); // prevent mutation of original URL object

parsedUrl.port = "";
return parsedUrl.toString();
}
Expand Down

0 comments on commit 4c908e6

Please sign in to comment.