Skip to content

Commit 9bcd1f0

Browse files
committed
Clean up a little
1 parent f3e4b9f commit 9bcd1f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SwiftyTimer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ extension Timer {
104104
/// By default, the timer is scheduled on the current run loop for the default mode.
105105
/// Specify `runLoop` or `modes` to override these defaults.
106106

107-
public func start(runLoop: RunLoop = RunLoop.current, modes: RunLoopMode...) {
108-
let modes = modes.isEmpty ? [RunLoopMode.defaultRunLoopMode] : modes
107+
public func start(runLoop: RunLoop = .current, modes: RunLoopMode...) {
108+
let modes = modes.isEmpty ? [.defaultRunLoopMode] : modes
109109

110110
for mode in modes {
111111
runLoop.add(self, forMode: mode)

SwiftyTimerTests/SwiftyTimerTests/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
5151
let timer = Timer.new(after: 0.1.seconds) {
5252
self.test5()
5353
}
54-
RunLoop.current.add(timer, forMode: RunLoopMode.defaultRunLoopMode)
54+
RunLoop.current.add(timer, forMode: .defaultRunLoopMode)
5555
}
5656

5757
var timer4: Timer!

0 commit comments

Comments
 (0)