Skip to content
Snippets Groups Projects
Unverified Commit c0026ff1 authored by Tobias Bieniek's avatar Tobias Bieniek Committed by GitHub
Browse files

fix: changelog: Fix `files.length` conditions (#7210)

parent 0503ad7c
Branches
Tags
No related merge requests found
......@@ -70,7 +70,7 @@ export async function getReleaseNotesMd(
}
const { path: changelogFile, sha } = files.shift();
/* istanbul ignore if */
if (files.length > 1) {
if (files.length !== 0) {
logger.debug(
`Multiple candidates for changelog file, using ${changelogFile}`
);
......
......@@ -68,7 +68,7 @@ export async function getReleaseNotesMd(
}
const { path: changelogFile, id } = files.shift();
/* istanbul ignore if */
if (files.length > 1) {
if (files.length !== 0) {
logger.debug(
`Multiple candidates for changelog file, using ${changelogFile}`
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment