mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 10:18:31 +02:00
Fix lint warnings: redundant type and floating promises
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -196,7 +196,7 @@ export const gitMutations = (dir: string, callbacks: GitCallbacks) => {
|
||||
}
|
||||
|
||||
if (result.type === "uncommitted_changes") {
|
||||
callbacks
|
||||
void callbacks
|
||||
.promptUncommittedChanges()
|
||||
.then(async (strategy) => {
|
||||
if (strategy === "cancel") return;
|
||||
@@ -205,13 +205,13 @@ export const gitMutations = (dir: string, callbacks: GitCallbacks) => {
|
||||
return invoke<PullResult>("cmd_git_pull", { dir });
|
||||
})
|
||||
.then(async () => {
|
||||
onSuccess();
|
||||
await onSuccess();
|
||||
await callbacks.forceSync();
|
||||
}, handleError);
|
||||
}
|
||||
|
||||
if (result.type === "diverged") {
|
||||
callbacks
|
||||
void callbacks
|
||||
.promptDiverged(result)
|
||||
.then((strategy) => {
|
||||
if (strategy === "cancel") return;
|
||||
@@ -231,7 +231,7 @@ export const gitMutations = (dir: string, callbacks: GitCallbacks) => {
|
||||
});
|
||||
})
|
||||
.then(async () => {
|
||||
onSuccess();
|
||||
await onSuccess();
|
||||
await callbacks.forceSync();
|
||||
}, handleError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user