style(lint): fix swiftlint warnings

This commit is contained in:
Peter Steinberger 2025-12-13 10:39:34 +00:00
parent e86e6b9160
commit c0257fcba4
2 changed files with 3 additions and 5 deletions

View File

@ -25,10 +25,8 @@ public enum AppLocator {
$0.activationPolicy == .regular && !$0.isHidden && $0.bundleIdentifier != nil
}
for app in visibleApps {
if Self.point(mouseLocation, isInsideWindowOf: app) {
return app
}
for app in visibleApps where Self.point(mouseLocation, isInsideWindowOf: app) {
return app
}
// Fallback.

View File

@ -13,7 +13,7 @@ struct InputDriverTests {
@Test("cachedLocation populates cache when empty")
func cachedLocationPopulatesCache() {
var cache: CGPoint? = nil
var cache: CGPoint?
_ = InputDriver.cachedLocation(using: &cache)
// If running in CI without UI, location may be nil; just assert cache mirrors result.
#expect(cache == InputDriver.currentLocation())