Skip to content

Commit b4b00fe

Browse files
committed
reverted 'throws'
1 parent 250dca5 commit b4b00fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Instrumentation/NetworkStatus/NetworkMonitor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class NetworkMonitor : NetworkMonitorProtocol {
2020
monitor.cancel()
2121
}
2222

23-
init() {
23+
public init() throws {
2424
let pathHandler = { (path: NWPath) in
2525
let availableInterfaces = path.availableInterfaces
2626
let wifiInterface = self.getWifiInterface(interfaces: availableInterfaces)

Sources/Instrumentation/NetworkStatus/NetworkStatus.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Network
1111
public class NetworkStatus {
1212
public private(set) var networkInfo: CTTelephonyNetworkInfo
1313
public private(set) var networkMonitor: NetworkMonitorProtocol
14-
public convenience init() {
15-
self.init(with: NetworkMonitor())
14+
public convenience init() throws {
15+
self.init(with: try NetworkMonitor())
1616
}
1717

1818
public init(with monitor: NetworkMonitorProtocol, info: CTTelephonyNetworkInfo = CTTelephonyNetworkInfo()) {

0 commit comments

Comments
 (0)