Skip to content

Commit 0d01cc9

Browse files
committed
fix: use correct property access
1 parent 92abe29 commit 0d01cc9

File tree

1 file changed

+3
-4
lines changed
  • lib/node_modules/@stdlib/_tools/remark/plugins/remark-lint-eslint/lib

1 file changed

+3
-4
lines changed

lib/node_modules/@stdlib/_tools/remark/plugins/remark-lint-eslint/lib/factory.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,9 @@ function factory( options ) {
114114
if (
115115
prev &&
116116
prev.type === 'heading' &&
117-
prev.value &&
118-
prev.value.children &&
119-
prev.value.children[ 0 ] &&
120-
prev.value.children[ 0 ].value === 'Usage'
117+
prev.children &&
118+
prev.children[ 0 ] &&
119+
prev.children[ 0 ].value === 'Usage'
121120
) {
122121
// Cache the node's value, as this will be prepended to subsequent code blocks and allow evaluation of code blocks for doctesting:
123122
FIRST = node.value;

0 commit comments

Comments
 (0)