fix: satisfy swiftformat for ios build
This commit is contained in:
1 parent
43f6b9ef32
commit
49e89cf3f1
2 files changed
+3
-3
No files matched your search
@@ -440,7 +440,7 @@ private struct ChatComposerTextView: NSViewRepresentable {
|
||||
// Always allow clearing the text (e.g. after send), even while editing.
|
||||
// Only skip other updates while editing to avoid cursor jumps.
|
||||
let shouldClear = self.text.isEmpty && !textView.string.isEmpty
|
||||
if isEditing && !shouldClear { return }
|
||||
if isEditing, !shouldClear { return }
|
||||
|
||||
if textView.string != self.text {
|
||||
context.coordinator.isProgrammaticUpdate = true
|
||||
|
||||
Reference in new issue
Block a user