Skip to content

Commit db54102

Browse files
committed
chore(scanner): Simplify code with a range operator
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 581a24c commit db54102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scanner/src/main/kotlin/ScannerMatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ data class ScannerMatcher(
9494
if (!nameRegex.matches(details.name)) return false
9595

9696
val version = Semver(details.version)
97-
return minVersion <= version && version < maxVersion &&
97+
return version in minVersion..<maxVersion &&
9898
(configuration == null || configuration == details.configuration)
9999
}
100100
}

0 commit comments

Comments
 (0)