Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoncal committed Nov 15, 2023
1 parent f846f76 commit c70216d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class HACoreBlahObject {
}
}
}

#if targetEnvironment(macCatalyst)
#if canImport(CoreMediaIO)
import CoreMediaIO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public protocol HACoreBlahProperty {
func getPropertyDataSize(objectID: UInt32, dataSize: UnsafeMutablePointer<UInt32>) -> OSStatus
func getPropertyData(objectID: UInt32, dataSize: UInt32, output: UnsafeMutableRawPointer) -> OSStatus
}

#if targetEnvironment(macCatalyst)
#if canImport(CoreMediaIO)
public struct HACoreMediaProperty<Type>: HACoreBlahProperty {
Expand Down Expand Up @@ -149,7 +150,6 @@ extension HACoreMediaProperty {
}
#endif


extension HACoreAudioProperty {
static var deviceUID: HACoreAudioProperty<Unmanaged<CFString>> {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ private class InputOutputDeviceUpdateSignaler: SensorProviderUpdateSignaler {
#endif
#endif


var id: UInt32 {
switch self {
case .invalid: return .max
Expand All @@ -32,7 +31,6 @@ private class InputOutputDeviceUpdateSignaler: SensorProviderUpdateSignaler {
case let .coreMedia(id): return id
#endif
#endif

Check warning on line 33 in Sources/Shared/API/Webhook/Sensors/InputOutputDeviceSensor.swift

View check run for this annotation

Codecov / codecov/patch

Sources/Shared/API/Webhook/Sensors/InputOutputDeviceSensor.swift#L33

Added line #L33 was not covered by tests

}
}
}
Expand Down Expand Up @@ -81,8 +79,7 @@ private class InputOutputDeviceUpdateSignaler: SensorProviderUpdateSignaler {
addObserver(object: .coreMedia(id), property: property)
}
#endif
#endif

#endif
}

public class InputOutputDeviceSensor: SensorProvider {
Expand Down

0 comments on commit c70216d

Please sign in to comment.