Skip to content

Commit

Permalink
Fix Unnecessary Cast
Browse files Browse the repository at this point in the history
  • Loading branch information
cotw-fabier committed Jun 26, 2024
1 parent 689caa0 commit 8dcdb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/parchment/lib/src/codecs/markdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ class _ParchmentMarkdownEncoder extends Converter<ParchmentDocument, String> {

for (final textNode in node.children) {
if (textNode is TextNode) {
handleText(lineBuffer, textNode as TextNode, currentInlineStyle);
handleText(lineBuffer, textNode, currentInlineStyle);
currentInlineStyle = textNode.style;
} else if (textNode is EmbedNode) {

Check warning on line 430 in packages/parchment/lib/src/codecs/markdown.dart

View check run for this annotation

Codecov / codecov/patch

packages/parchment/lib/src/codecs/markdown.dart#L430

Added line #L430 was not covered by tests
// Import custom extensions for block and inline embeds.
Expand Down

0 comments on commit 8dcdb5e

Please sign in to comment.