Skip to content

Commit 977d27b

Browse files
srawlinsgnprice
authored andcommitted
Prepare for curly_braces lint rule change
To fix https://github.com/dart-lang/linter/issues/4870, the analyzer is now reporting if-statement bodies without curly braces when the if-statement condition spans multiple lines. This change prepares zulip-flutter for this lint rule change.
1 parent e36f984 commit 977d27b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/model/content.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,9 @@ class _ZulipContentParser {
995995
final first = child.nodes[0];
996996
if (first is! dom.Element
997997
|| first.localName != 'span'
998-
|| first.nodes.isNotEmpty) return null;
998+
|| first.nodes.isNotEmpty) {
999+
return null;
1000+
}
9991001
}
10001002
final grandchild = child.nodes.last;
10011003
if (grandchild is! dom.Element) return null;

0 commit comments

Comments
 (0)