We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f62edc commit b9dd217Copy full SHA for b9dd217
lib/model/content.dart
@@ -986,7 +986,7 @@ class _ZulipContentParser {
986
&& divElement.className == "codehilite");
987
988
if (divElement.nodes.length != 1) return null;
989
- final child = divElement.nodes[0];
+ final child = divElement.nodes.single;
990
if (child is! dom.Element) return null;
991
if (child.localName != 'pre') return null;
992
@@ -997,7 +997,7 @@ class _ZulipContentParser {
997
|| first.localName != 'span'
998
|| first.nodes.isNotEmpty) return null;
999
}
1000
- final grandchild = child.nodes[child.nodes.length - 1];
+ final grandchild = child.nodes.last;
1001
if (grandchild is! dom.Element) return null;
1002
if (grandchild.localName != 'code') return null;
1003
0 commit comments