Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit f9d73db

Browse files
committed
Syntax correction
- Replaced if let with guard
1 parent 92a78d7 commit f9d73db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Sources/UIKitComponents/Views/Subclasses/BaseTextView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public class BaseTextView: UITextView, UITextViewDelegate {
104104
public func textViewDidEndEditing(_ textView: UITextView) {
105105
isInEditMode.send(false)
106106

107-
if !textView.text.isEmpty { return }
107+
guard !textView.text.isEmpty else { return }
108108
setPlaceholder()
109109
}
110110

0 commit comments

Comments
 (0)