Skip to content

Commit 85f29a7

Browse files
committed
make nameDescription of NetworkPath public
1 parent 0544a64 commit 85f29a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/NetworkPathMonitor/NetworkPath.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,13 @@ extension NetworkPath: Equatable, CustomStringConvertible, CustomDebugStringConv
297297
public var debugDescription: String {
298298
"NetworkPath(status: \(status), interfaces: \(interfacesDescription), supportsIPv4: \(supportsIPv4), supportsIPv6: \(supportsIPv6), supportsDNS: \(supportsDNS), isConstrained: \(isConstrained), isExpensive: \(isExpensive), isFirstUpdate: \(isFirstUpdate), isPhysicalChange: \(isPhysicalChange), sequence: \(sequence.debugDescription), previous: (\(sequence.previousPath?.interfacesDescription ?? "null"), \(sequence.previousPath?.sequence.debugDescription ?? "null")))"
299299
}
300-
300+
301301
private var interfacesDescription: String {
302302
"(available: [\(availableInterfaces.nameDescription)], used: [\(usedInterfaces.nameDescription)], usedPhysical: [\(usedPhysicalInterfaces.nameDescription)])"
303303
}
304304
}
305305

306-
private extension Array where Element == NetworkKit.Interface {
306+
public extension Array where Element == NetworkKit.Interface {
307307
var names: [String] { map(\.name) }
308308

309309
var nameDescription: String { names.joined(separator: ", ") }

0 commit comments

Comments
 (0)