chore: pr feedbacks

This commit is contained in:
Nicolas Meienberger 2026-01-22 21:51:33 +01:00
parent b7ff2f709a
commit 2208814794
2 changed files with 4 additions and 6 deletions

View file

@ -51,10 +51,12 @@ export interface MirrorEvent {
export interface DoctorEvent {
repositoryId: string;
repositoryName: string;
error?: string;
}
export interface DoctorCompletedEvent extends DoctorEvent {
success: boolean;
completedAt: number;
steps: Array<{
step: string;
success: boolean;

View file

@ -87,9 +87,7 @@ class RepositoryMutex {
}
});
if (onAbort) {
signal?.removeEventListener("abort", onAbort);
}
signal?.removeEventListener("abort", onAbort);
if (signal?.aborted) {
this.releaseShared(repositoryId, lockId);
@ -138,9 +136,7 @@ class RepositoryMutex {
}
});
if (onAbort) {
signal?.removeEventListener("abort", onAbort);
}
signal?.removeEventListener("abort", onAbort);
if (signal?.aborted) {
this.releaseExclusive(repositoryId, lockId);