wrap returns from if blocks
fixes two analyzer errors for return blocks on new lines from if blocks
This commit is contained in:
1 parent
e449f5e1d5
commit
8d15f7cef6
2 files changed
+4
-2
No files matched your search
@@ -673,8 +673,9 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
String _formatRelativeTime(DateTime time) {
|
||||
final diff = DateTime.now().difference(time);
|
||||
if (diff.inSeconds < 60) return context.l10n.time_justNow;
|
||||
if (diff.inMinutes < 60)
|
||||
if (diff.inMinutes < 60) {
|
||||
return context.l10n.time_minutesAgo(diff.inMinutes);
|
||||
}
|
||||
if (diff.inHours < 24) return context.l10n.time_hoursAgo(diff.inHours);
|
||||
return context.l10n.time_daysAgo(diff.inDays);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user