Skip to content

Commit

Permalink
refactor(Lint): use implicit return when it's possible
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudjenny committed Apr 4, 2020
1 parent d76edba commit 7353781
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions telltime/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
return true
true
}

// MARK: UISceneSession Lifecycle
Expand All @@ -15,6 +15,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
_ application: UIApplication,
configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions
) -> UISceneConfiguration {
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
}
2 changes: 1 addition & 1 deletion telltime/TTS/SpeakButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct SpeakButton: View {
}

private var widthProgressRatio: CGFloat {
return store.state.tts.isSpeaking ? CGFloat(store.state.tts.speakingProgress) : 1.0
store.state.tts.isSpeaking ? CGFloat(store.state.tts.speakingProgress) : 1.0
}

private func tellTime() {
Expand Down

0 comments on commit 7353781

Please sign in to comment.