Skip to content

Commit 3e7683d

Browse files
PIG208gnprice
authored andcommitted
msglist [nfc]: Remove extra parens
Signed-off-by: Zixuan James Li <[email protected]>
1 parent fcd9b2e commit 3e7683d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/message_list.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class MessageListAppBarTitle extends StatelessWidget {
317317
required String text,
318318
}) {
319319
// A null [Icon.icon] makes a blank space.
320-
final icon = (stream != null) ? iconDataForStream(stream) : null;
320+
final icon = stream != null ? iconDataForStream(stream) : null;
321321
return Row(
322322
mainAxisSize: MainAxisSize.min,
323323
// TODO(design): The vertical alignment of the stream privacy icon is a bit ad hoc.
@@ -1008,7 +1008,7 @@ class StreamMessageRecipientHeader extends StatelessWidget {
10081008
padding: const EdgeInsets.only(left: 6, right: 6, bottom: 3),
10091009
child: Icon(size: 16, color: iconColor,
10101010
// A null [Icon.icon] makes a blank space.
1011-
(stream != null) ? iconDataForStream(stream) : null)),
1011+
stream != null ? iconDataForStream(stream) : null)),
10121012
Padding(
10131013
padding: const EdgeInsets.symmetric(vertical: 11),
10141014
child: Text(streamName,

0 commit comments

Comments
 (0)