Skip to content

Commit

Permalink
style: remove return keyword for one line functions
Browse files Browse the repository at this point in the history
  • Loading branch information
PouriaAmini committed Jul 8, 2024
1 parent 162d79e commit 74ba02b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ extension UIResponder {
extension UITextField {
func shouldTrack(_ action: Selector, for event: UIEvent?) -> Bool {
// primaryActionTriggered: is triggered when the text field loses focus.
return action == Selector(("primaryActionTriggered:"))
action == Selector(("primaryActionTriggered:"))
}
}

#if !os(tvOS)
extension UISlider {
func shouldTrack(_ action: Selector, for event: UIEvent?) -> Bool {
return event?.allTouches?.contains { $0.phase == .ended && $0.view == self } ?? false
event?.allTouches?.contains { $0.phase == .ended && $0.view == self } ?? false
}
}
#endif
Expand Down

0 comments on commit 74ba02b

Please sign in to comment.