Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobWrenn committed May 31, 2020
1 parent 35eb601 commit 4576775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/notustohtml.dart
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class _NotusHtmlDecoder extends Converter<String, Delta> {
Document html = parse(input);

html.body.nodes.asMap().forEach((index, node) {
var next = null;
var next;
if (index + 1 < html.body.nodes.length) next = html.body.nodes[index + 1];
delta = _parseNode(node, delta, next);
});
Expand Down Expand Up @@ -328,7 +328,7 @@ class _NotusHtmlDecoder extends Converter<String, Delta> {
blockAttributes["block"] = listType;
}
element.nodes.asMap().forEach((index, node) {
var next = null;
var next;
if (index + 1 < element.nodes.length) next = element.nodes[index + 1];
delta = _parseNode(node, delta, next, inList: element.localName == "li", inBlock: blockAttributes);
});
Expand Down

0 comments on commit 4576775

Please sign in to comment.