Skip to content

Commit

Permalink
Make single function interfaces functional without call smell
Browse files Browse the repository at this point in the history
  • Loading branch information
iselo committed Aug 20, 2023
1 parent 6ebdc16 commit 0b3e3a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Project>): ConfigurationHandler {
plugin.apply(project)
plugin.apply(this.project)
return this
}
}
return Handler()
return BuildConfigurationHandler(project)
}
}

Expand Down

0 comments on commit 0b3e3a1

Please sign in to comment.