Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Feb 6, 2025
1 parent 34c1e0d commit 74a96e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ const makeFetchPromise = (handlerOrListener: HandlerOrListener) => {
// this might never get invoked because of Deno's blocking issue

const port = handlerOrListener.addr.port
if (!port) {
throw new Error('Port cannot be found')
}

const resp = (url: URL | string = '', params?: RequestInit) => {
return new Promise<{ res: Response; data?: unknown }>((resolve) => {
setTimeout(async () => {
Expand Down

0 comments on commit 74a96e9

Please sign in to comment.