Skip to content

Commit 54b4d5c

Browse files
committed
style(content_management): remove unnecessary lines of code
- Reduced code complexity in _CreateHeadlineViewState class - Removed redundant closing parentheses to improve readability
1 parent 6358a8c commit 54b4d5c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/content_management/view/create_headline_page.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ class _CreateHeadlineViewState extends State<_CreateHeadlineView> {
107107
content: Text(state.exception!.toFriendlyMessage(context)),
108108
backgroundColor: Theme.of(context).colorScheme.error,
109109
),
110-
);
110+
);
111111
}
112112
},
113-
builder: (context, state) {
114-
if (state.status == CreateHeadlineStatus.loading) {
115-
return LoadingStateWidget(
116-
icon: Icons.newspaper,
117-
headline: l10n.loadingData,
118-
subheadline: l10n.pleaseWait,
119-
);
120-
}
113+
builder: (context, state) {
114+
if (state.status == CreateHeadlineStatus.loading) {
115+
return LoadingStateWidget(
116+
icon: Icons.newspaper,
117+
headline: l10n.loadingData,
118+
subheadline: l10n.pleaseWait,
119+
);
120+
}
121121

122122
if (state.status == CreateHeadlineStatus.failure &&
123123
state.sources.isEmpty &&

0 commit comments

Comments
 (0)