修复lint问题
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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 })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user