Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Dlugos <6349682+vaind@users.noreply.github.com>
  • Loading branch information
lucas-zimerman and vaind authored Oct 15, 2024
1 parent 40f7ebd commit f6cc6c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions updater/scripts/update-changelog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ for ($i = 0; $i -lt $lines.Count; $i++)
}

# Skip the prettier comment that may be found before the Unreleased version.
if ($line -match "<!-- prettier-ignore-start -->" -and $skipPrettier -eq $false)
if ($line -match "<!-- prettier-ignore-start -->" -and -not $skipPrettier)
{
$skipPrettier = $true
continue
Expand All @@ -51,7 +51,7 @@ for ($i = 0; $i -lt $lines.Count; $i++)
}
throw "Prettier comment format - expected <!-- prettier-ignore-end -->, but found: '$line'"
}
# End of prettier comment
# End of prettier comment

# Next, we expect a header for the current version or "Unreleased".
if (-not $line.StartsWith("#"))
Expand Down

0 comments on commit f6cc6c4

Please sign in to comment.