Skip to content

Commit a1df565

Browse files
committed
fix: replace max() with maxOrNull() in Project.lastEditYear
1 parent 9137060 commit a1df565

File tree

1 file changed

+1
-1
lines changed
  • plugins/gradle-extensions-plugin/src/main/kotlin/com/github/vlsi/gradle/properties/dsl

1 file changed

+1
-1
lines changed

plugins/gradle-extensions-plugin/src/main/kotlin/com/github/vlsi/gradle/properties/dsl/ProjectExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ fun Project.lastEditYear(path: String = "$rootDir/NOTICE"): Int =
129129
.asSequence()
130130
.flatMap { yearRegexp.findAll(it) }
131131
.map { it.value.toInt() }
132-
.max() ?: throw IllegalStateException("Unable to identify copyright year from $path")
132+
.maxOrNull() ?: throw IllegalStateException("Unable to identify copyright year from $path")

0 commit comments

Comments
 (0)