Skip to content

Commit

Permalink
refactor(fossid)!: Remove the unused options from the constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
  • Loading branch information
mnonnenmacher committed Sep 26, 2023
1 parent b5fdb79 commit 6f1976c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions plugins/scanners/fossid/src/main/kotlin/FossId.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ import org.ossreviewtoolkit.utils.ort.showStackTrace
*/
class FossId internal constructor(
override val name: String,
private val options: Options,
private val config: FossIdConfig
) : PackageScannerWrapper {
companion object : Logging {
Expand Down Expand Up @@ -170,7 +169,7 @@ class FossId internal constructor(
}

class Factory : ScannerWrapperFactory<FossId>("FossId") {
override fun create(options: Options) = FossId(type, options, FossIdConfig.create(options))
override fun create(options: Options) = FossId(type, FossIdConfig.create(options))
}

/**
Expand Down
2 changes: 1 addition & 1 deletion plugins/scanners/fossid/src/test/kotlin/FossIdTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ private val DEFAULT_IGNORE_RULE_SCOPE = RuleScope.SCAN
/**
* Create a new [FossId] instance with the specified [config].
*/
private fun createFossId(config: FossIdConfig): FossId = FossId("FossId", emptyMap(), config)
private fun createFossId(config: FossIdConfig): FossId = FossId("FossId", config)

/**
* Create a standard [FossIdConfig] whose properties can be partly specified.
Expand Down

0 comments on commit 6f1976c

Please sign in to comment.