Skip to content

Commit

Permalink
fixed it. move outside of parens
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Mahoney committed Nov 3, 2022
1 parent 8e0393d commit d7f1541
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d7f1541

Please sign in to comment.