修复lint问题

This commit is contained in:
xintaofei
2026-03-21 18:06:59 +08:00
parent 450b081e88
commit 32d922a346
2 changed files with 2 additions and 7 deletions

View File

@@ -268,10 +268,7 @@ export function VersionControlSettings() {
return return
} }
if (isGitHubAccount(account)) { if (isGitHubAccount(account)) {
const result = await validateGitHubToken( const result = await validateGitHubToken(account.server_url, token)
account.server_url,
token
)
if (result.success) { if (result.success) {
toast.success(t("connectionSuccess")) toast.success(t("connectionSuccess"))
} else { } else {

View File

@@ -357,9 +357,7 @@ export async function getAccountToken(
return invoke("get_account_token", { accountId }) return invoke("get_account_token", { accountId })
} }
export async function deleteAccountToken( export async function deleteAccountToken(accountId: string): Promise<void> {
accountId: string
): Promise<void> {
return invoke("delete_account_token", { accountId }) return invoke("delete_account_token", { accountId })
} }