Skip to content

Commit

Permalink
coverage: ignore exception
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh committed May 9, 2024
1 parent 1501e61 commit bd17901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/modules/versioning/pep440/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function getNewValue({
return null;
}

// return early newVersion is excluded from range
// return early if newVersion is excluded from range
if (
ranges.some(
(range) => range.operator === '!=' && range.version === newVersion,
Expand Down Expand Up @@ -203,6 +203,7 @@ export function getNewValue({
newVersion,
);

// istanbul ignore if
if (!satisfies(newVersion, checkedResult)) {
// we failed at creating the range
logger.warn(
Expand Down

0 comments on commit bd17901

Please sign in to comment.