Skip to content

Commit ede207c

Browse files
committed
chore: code cleanup
1 parent 819a799 commit ede207c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,11 @@ class _DesktopAIPromptInputState extends State<DesktopAIPromptInput> {
253253
// get the attached files and mentioned pages
254254
final metadata = context.read<AIPromptInputBloc>().consumeMetadata();
255255

256-
widget.onSubmitted(trimmedText, showPredefinedFormatSection ? predefinedFormat : null, metadata);
256+
widget.onSubmitted(
257+
trimmedText,
258+
showPredefinedFormatSection ? predefinedFormat : null,
259+
metadata,
260+
);
257261
}
258262

259263
void handleTextControllerChanged() {

frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_ai_prompt_input.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ class _MobileAIPromptInputState extends State<MobileAIPromptInput> {
184184
// get the attached files and mentioned pages
185185
final metadata = context.read<AIPromptInputBloc>().consumeMetadata();
186186

187-
if (showPredefinedFormatSection) {
188-
widget.onSubmitted(trimmedText, predefinedFormat, metadata);
189-
} else {
190-
widget.onSubmitted(trimmedText, null, metadata);
191-
}
187+
widget.onSubmitted(
188+
trimmedText,
189+
showPredefinedFormatSection ? predefinedFormat : null,
190+
metadata,
191+
);
192192
}
193193

194194
void handleTextControllerChange() {

0 commit comments

Comments
 (0)