Skip to content

Commit 19ae1db

Browse files
committed
chore(model): Use a better name for range
Align the name with the paramater name of `satisfies()` and with the code in `identifier.isVersionRange()`. Fixes #10434. Signed-off-by: Frank Viernau <[email protected]>
1 parent ef58233 commit 19ae1db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/src/main/kotlin/utils/VersionUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ internal fun Identifier.isApplicableIvyVersion(pkgId: Identifier) =
4242

4343
// `Semver.satisfies(String)` requires a valid version range to work as expected, see:
4444
// https://github.com/semver4j/semver4j/issues/132.
45-
val range = getVersionRange() ?: return false
45+
val rangesList = getVersionRange() ?: return false
4646

47-
return Semver.coerce(pkgId.version)?.satisfies(range) == true
47+
return Semver.coerce(pkgId.version)?.satisfies(rangesList) == true
4848
}.onFailure {
4949
logger.warn {
5050
"Failed to check if identifier version '$version' is applicable to package version " +

0 commit comments

Comments
 (0)