Skip to content

Commit 8453a93

Browse files
committedMar 12, 2024
Cleanup
1 parent 4be4575 commit 8453a93

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎packages/runtime-common/virtual-network.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ export type Handler = (req: Request) => Promise<Response | null>;
2222

2323
export class VirtualNetwork {
2424
private nativeFetch = getNativeFetch();
25-
2625
private handlers: Handler[] = [];
27-
2826
private shimmedModules = new Map<string, Record<string, any>>();
2927

3028
shimModule(moduleIdentifier: string, module: Record<string, any>) {
@@ -50,9 +48,7 @@ export class VirtualNetwork {
5048
);
5149

5250
if (!shimmedModule) {
53-
throw new Error(
54-
`Shimmed module not found but it should've been: ${request.url}`,
55-
);
51+
throw new Error(`Shimmed module not found: ${request.url}`);
5652
}
5753

5854
let response = new Response();

0 commit comments

Comments
 (0)