Skip to content

Commit

Permalink
avoid ().invoke()
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Jun 13, 2023
1 parent 2bb0f19 commit 04294d8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ class DiktatSmokeTest : DiktatSmokeTestBase() {
resourceFilePath = RESOURCE_FILE_PATH,
function = { testFile ->
format(
ruleSetSupplier = { DiktatRuleSetFactoryImpl().invoke(DiktatRuleConfigReaderImpl().invoke(config.inputStream())) },
ruleSetSupplier = {
val diktatRuleConfigReader = DiktatRuleConfigReaderImpl()
val diktatRuleSetFactory = DiktatRuleSetFactoryImpl()
diktatRuleSetFactory(diktatRuleConfigReader(config.inputStream()))
},
file = testFile,
cb = { lintError, _ -> unfixedLintErrors.add(lintError) },
)
Expand Down

0 comments on commit 04294d8

Please sign in to comment.