(name: string | undefined, path: string)
| 70 | void loc; // keep TS happy if unused |
| 71 | |
| 72 | function run(name: string | undefined, path: string) { |
| 73 | return rootGuard({ name, url: new URL(`https://app.example.com${path}`) }); |
| 74 | } |
| 75 | |
| 76 | function location(result: Response | null): string | null { |
| 77 | return result instanceof Response ? result.headers.get("Location") : null; |
no test coverage detected