Skip to content

Commit

Permalink
Format with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jondricek committed Dec 31, 2024
1 parent 6a7fb65 commit b2d837b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/changelogToGithubRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ function extractChangeItems({ version }) {

visit(tree, 'heading', (node, index, parent) => {
const [text] = node.children;
if (text?.type === 'text' && text.value.startsWith(version) && parent && index !== undefined) {
if (
text?.type === 'text' &&
text.value.startsWith(version) &&
parent &&
index !== undefined
) {
const nextSibling = parent.children[index + 1];
if (nextSibling?.type === 'list') {
list = nextSibling;
Expand Down

0 comments on commit b2d837b

Please sign in to comment.