Skip to content

Commit

Permalink
remove the redundant let block
Browse files Browse the repository at this point in the history
  • Loading branch information
taefi committed Jan 14, 2025
1 parent 63af329 commit 028a8d6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ public class HillaPlugin : Plugin<Project> {
if (compilerOptions != null) {
val freeCompilerArgs = compilerOptions.javaClass.methods.find { it.name == "getFreeCompilerArgs" }
?.invoke(compilerOptions) as? DefaultListProperty<String>
freeCompilerArgs?.let {
it.addAll(listOf("-Xjsr305=strict", "-Xemit-jvm-type-annotations"))
} ?: project.logger.warn("""
freeCompilerArgs?.addAll(listOf("-Xjsr305=strict", "-Xemit-jvm-type-annotations")) ?:
project.logger.warn("""
Kotlin JVM plugin is applied and 'compilerOption' was not null, but could not acquire the
'freeCompilerArgs' instance from the 'compilerOption' to configure Kotlin compiler options by
adding '-Xjsr305=strict' and '-Xemit-jvm-type-annotations'. To make sure annotation based form
Expand Down

0 comments on commit 028a8d6

Please sign in to comment.