Skip to content

Commit ca7d26a

Browse files
committed
Remove unnecessary code
1 parent 9cea071 commit ca7d26a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/html_parser.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,9 @@ class HtmlParser extends StatelessWidget {
572572
/// the list of the trees children according to the `before` and `after` Style
573573
/// properties.
574574
static StyledElement _processBeforesAndAfters(StyledElement tree) {
575-
if (tree.style.before != null && tree.children.isNotEmpty) {
575+
if (tree.style.before != null) {
576576
tree.children.insert(
577-
0, new TextContentElement(text: tree.style.before, style: tree.style.copyWith(beforeAfterNull: true, display: Display.INLINE)));
577+
0, TextContentElement(text: tree.style.before, style: tree.style.copyWith(beforeAfterNull: true, display: Display.INLINE)));
578578
}
579579
if (tree.style.after != null) {
580580
tree.children

0 commit comments

Comments
 (0)