From 0b3e3a1341f7c8fc7e54e8e17adadfadb83eeb9a Mon Sep 17 00:00:00 2001 From: Oleksii Kucheruk Date: Sun, 20 Aug 2023 18:31:08 +0300 Subject: [PATCH] Make single function interfaces functional without call smell --- .../src/main/kotlin/co/raccoons/local/gradle/GradleBuild.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/kotlin/co/raccoons/local/gradle/GradleBuild.kt b/buildSrc/src/main/kotlin/co/raccoons/local/gradle/GradleBuild.kt index 7c51c75..f0bc0d2 100644 --- a/buildSrc/src/main/kotlin/co/raccoons/local/gradle/GradleBuild.kt +++ b/buildSrc/src/main/kotlin/co/raccoons/local/gradle/GradleBuild.kt @@ -16,13 +16,13 @@ class GradleBuild private constructor() { */ fun of(project: Project): ConfigurationHandler { - class Handler : ConfigurationHandler { + class BuildConfigurationHandler(private val project: Project) : ConfigurationHandler { override fun use(plugin: Plugin): ConfigurationHandler { - plugin.apply(project) + plugin.apply(this.project) return this } } - return Handler() + return BuildConfigurationHandler(project) } }