Skip to content

Commit

Permalink
chore(v2): (nits) remove redundant lines
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Nov 21, 2019
1 parent 5b3405b commit b360b45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/docusaurus-mdx-loader/src/remark/rightToc/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ function toValue(node) {
case 'delete':
return `<del>${node.children.map(toValue).join('')}</del>`;
default:
return toString(node);
}
}
return '';
return toString(node);
}

// Visit all headings. We `slug` all headings (to account for
Expand Down

0 comments on commit b360b45

Please sign in to comment.