style(lint): fix swiftlint warnings
This commit is contained in:
parent
e86e6b9160
commit
c0257fcba4
@ -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.
|
||||
|
||||
@ -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())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user