( // eslint-disable-next-line @typescript-eslint/no-explicit-any fetcher: any )
| 74 | }; |
| 75 | |
| 76 | export const getGithubUsername = ( |
| 77 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 78 | fetcher: any |
| 79 | ) => async (email: string | undefined): Promise<string> => { |
| 80 | if (email === Placeholders.email) { |
| 81 | return Placeholders.username; |
| 82 | } |
| 83 | return fetcher(email).catch(() => { |
| 84 | return Placeholders.username; |
| 85 | }); |
| 86 | }; |
| 87 | |
| 88 | export const getUserInfo = (spawner: typeof execa) => async () => { |
| 89 | const opts: Options = { |
no outgoing calls
no test coverage detected