Skip to content

Commit

Permalink
Fix isAlive is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
intitni committed Jul 18, 2024
1 parent ae8d75f commit 8a89445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tool/Sources/CodeiumService/CodeiumExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ actor CodeiumServiceLifeKeeper {
}

var isAlive: Bool {
weakObjects.allSatisfy { $0.isAlive }
if weakObjects.isEmpty { return false }
return weakObjects.allSatisfy { $0.isAlive }
}
}

0 comments on commit 8a89445

Please sign in to comment.