Skip to content

Commit

Permalink
chore(scanoss): Add an explicit type to avoid a warning
Browse files Browse the repository at this point in the history
Avoid a warning about a platform call with potentially unchecked
nullablity issues.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Feb 23, 2024
1 parent 4036d3c commit 8936311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/scanners/scanoss/src/main/kotlin/ScanOss.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ScanOss internal constructor(

private val service = ScanOssService.create(config.apiUrl)

override val version by lazy {
override val version: String by lazy {
// TODO: Find out the best / cheapest way to query the SCANOSS server for its version.
val pomProperties = "/META-INF/maven/com.scanoss/scanner/pom.properties"
val properties = Scanner::class.java.getResourceAsStream(pomProperties).use { Properties().apply { load(it) } }
Expand Down

0 comments on commit 8936311

Please sign in to comment.