diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-09 13:32:41 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-09 13:32:41 +0900 |
| commit | 4f20c871860d0f62aef77bc716c3cc2677d4a592 (patch) | |
| tree | f819d92c3e3eb413b4e9826d4360b21bfe9c5215 /packages/sw/src/scripts | |
| parent | refactor(backend): better argument name (diff) | |
| download | sharkey-4f20c871860d0f62aef77bc716c3cc2677d4a592.tar.gz sharkey-4f20c871860d0f62aef77bc716c3cc2677d4a592.tar.bz2 sharkey-4f20c871860d0f62aef77bc716c3cc2677d4a592.zip | |
lint fixes
Diffstat (limited to 'packages/sw/src/scripts')
| -rw-r--r-- | packages/sw/src/scripts/operations.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sw/src/scripts/operations.ts b/packages/sw/src/scripts/operations.ts index be4f066b5f..0cbf4c7953 100644 --- a/packages/sw/src/scripts/operations.ts +++ b/packages/sw/src/scripts/operations.ts @@ -15,7 +15,7 @@ import { getUrlWithLoginId } from '@/scripts/login-id.js'; export const cli = new Misskey.api.APIClient({ origin, fetch: (...args): Promise<Response> => fetch(...args) }); export async function api<E extends keyof Misskey.Endpoints, O extends Misskey.Endpoints[E]['req']>(endpoint: E, userId?: string, options?: O): Promise<void | ReturnType<typeof cli.request<E, O>>> { - let account: { token: string; id: string } | void; + let account: { token: string; id: string } | void = undefined; if (userId) { account = await getAccountFromId(userId); |