Skip to content

Commit 7671fb9

Browse files
emilypgooglerlazo
andauthored
Update plugins/src/main/java/com/google/firebase/gradle/plugins/SemVerTask.kt
Co-authored-by: Rodrigo Lazo <[email protected]>
1 parent 9c4cfbe commit 7671fb9

File tree

1 file changed

+3
-3
lines changed
  • plugins/src/main/java/com/google/firebase/gradle/plugins

1 file changed

+3
-3
lines changed

plugins/src/main/java/com/google/firebase/gradle/plugins/SemVerTask.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ abstract class SemVerTask : DefaultTask() {
3737

3838
@TaskAction
3939
fun run() {
40-
val previous = ModuleVersion.fromStringOrNull(previousVersionString.get())
41-
val current = ModuleVersion.fromStringOrNull(currentVersionString.get())
42-
if (previous == null || current == null) {
40+
val previous = ModuleVersion.fromStringOrNull(previousVersionString.get()) ?: return
41+
val current = ModuleVersion.fromStringOrNull(currentVersionString.get()) ?: return
42+
4343
return // If these variables don't exist, no reason to check API
4444
}
4545
val bump =

0 commit comments

Comments
 (0)