Skip to content

Commit 1ff465d

Browse files
committed
Use Void over () on Logging.
1 parent e41128e commit 1ff465d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SKSupport/Logging.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public final class Logger {
100100
}
101101

102102
@discardableResult
103-
public func addLogHandler(_ handler: @escaping (String, LogLevel) -> ()) -> AnyLogHandler {
103+
public func addLogHandler(_ handler: @escaping (String, LogLevel) -> Void) -> AnyLogHandler {
104104
let obj = AnyLogHandler(handler)
105105
addLogHandler(obj)
106106
return obj
@@ -165,9 +165,9 @@ public final class Logger {
165165

166166
public class AnyLogHandler: LogHandler {
167167

168-
let handler: (String, LogLevel) -> ()
168+
let handler: (String, LogLevel) -> Void
169169

170-
public init(_ handler: @escaping (String, LogLevel) -> ()) {
170+
public init(_ handler: @escaping (String, LogLevel) -> Void) {
171171
self.handler = handler
172172
}
173173

0 commit comments

Comments
 (0)