Skip to content

Commit 26fb79a

Browse files
committed
lint
1 parent 8860102 commit 26fb79a

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

apps/twig/src/main/services/workspace/service.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,12 @@ export class WorkspaceService extends TypedEventEmitter<WorkspaceServiceEvents>
568568
log.error(
569569
`Init scripts failed for task ${taskId}, cleaning up worktree`,
570570
);
571-
await this.cleanupWorktree(taskId, mainRepoPath, worktree.worktreePath, association.branchName);
571+
await this.cleanupWorktree(
572+
taskId,
573+
mainRepoPath,
574+
worktree.worktreePath,
575+
association.branchName,
576+
);
572577
throw new Error(
573578
`Workspace init failed: ${initResult.errors?.join(", ") || "Unknown error"}`,
574579
);
@@ -694,7 +699,12 @@ export class WorkspaceService extends TypedEventEmitter<WorkspaceServiceEvents>
694699
this.ensureScriptRunner().cleanupTaskSessions(taskId);
695700

696701
if (association.mode === "worktree" && worktreePath) {
697-
await this.cleanupWorktree(taskId, mainRepoPath, worktreePath, association.branchName);
702+
await this.cleanupWorktree(
703+
taskId,
704+
mainRepoPath,
705+
worktreePath,
706+
association.branchName,
707+
);
698708

699709
const otherWorkspacesForFolder = getTaskAssociations().filter(
700710
(a) =>
@@ -1116,7 +1126,10 @@ export class WorkspaceService extends TypedEventEmitter<WorkspaceServiceEvents>
11161126
await git.deleteLocalBranch(branchName, true);
11171127
log.info(`Deleted branch ${branchName} for task ${taskId}`);
11181128
} catch (error) {
1119-
log.warn(`Failed to delete branch ${branchName} for task ${taskId}:`, error);
1129+
log.warn(
1130+
`Failed to delete branch ${branchName} for task ${taskId}:`,
1131+
error,
1132+
);
11201133
}
11211134
}
11221135

0 commit comments

Comments
 (0)