Skip to content

Commit

Permalink
Prepare for curly_braces lint rule change
Browse files Browse the repository at this point in the history
To fix dart-lang/linter#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.
  • Loading branch information
srawlins authored Sep 24, 2024
1 parent e36f984 commit a1ac617
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/model/content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,9 @@ class _ZulipContentParser {
final first = child.nodes[0];
if (first is! dom.Element
|| first.localName != 'span'
|| first.nodes.isNotEmpty) return null;
|| first.nodes.isNotEmpty) {
return null;
}
}
final grandchild = child.nodes.last;
if (grandchild is! dom.Element) return null;
Expand Down

0 comments on commit a1ac617

Please sign in to comment.