fixed it. move outside of parens

This commit is contained in:
Kevin Mahoney 2022-11-03 17:25:26 -04:00
parent 8e0393d982
commit d7f1541d86
No known key found for this signature in database
GPG Key ID: BED5CBC535941AC8
1 changed files with 2 additions and 10 deletions

View File

@ -123,17 +123,9 @@ const pkg = getPackageJson();
if (
version === 'prerelease' &&
preReleaseWords &&
!messages.some((message) => preReleaseWords.some((word) => message.includes(word)) && !versionType)
!messages.some((message) => preReleaseWords.some((word) => message.includes(word))) &&
!versionType
) {
console.log(version === 'prerelease');
console.log(preReleaseWords);
console.log(!messages.some((message) => preReleaseWords.some((word) => message.includes(word))));
console.log(!versionType);
console.log(
version === 'prerelease' &&
preReleaseWords &&
!messages.some((message) => preReleaseWords.some((word) => message.includes(word)) && !versionType),
);
version = null;
}