migrate current branch to query pattern (#116)

This commit is contained in:
Will Chen
2025-05-08 22:23:00 -07:00
committed by GitHub
parent 7839d6bde9
commit b6eeaab1bb
5 changed files with 65 additions and 77 deletions

View File

@@ -493,10 +493,9 @@ export class IpcClient {
// Get the current branch of an app
public async getCurrentBranch(appId: number): Promise<BranchResult> {
const result = await this.ipcRenderer.invoke("get-current-branch", {
return this.ipcRenderer.invoke("get-current-branch", {
appId,
});
return result;
}
// Get user settings