Skip to content

Commit 3730d19

Browse files
committed
Fix format
1 parent 33e3c6b commit 3730d19

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import java.io.File
2020
import java.io.FileOutputStream
2121
import java.io.OutputStream
2222
import javax.inject.Inject
23-
import org.gradle.api.Action
2423
import org.gradle.api.DefaultTask
2524
import org.gradle.api.Project
2625
import org.gradle.api.artifacts.Configuration
@@ -36,7 +35,6 @@ import org.gradle.api.tasks.OutputDirectory
3635
import org.gradle.api.tasks.OutputFile
3736
import org.gradle.api.tasks.TaskAction
3837
import org.gradle.process.ExecOperations
39-
import org.gradle.process.JavaExecSpec
4038

4139
val Project.metalavaConfig: Configuration
4240
get() =
@@ -103,7 +101,7 @@ abstract class GenerateStubsTask @Inject constructor(private val execOperations:
103101
"--include-annotations",
104102
"--doc-stubs",
105103
outputDir.absolutePath,
106-
)
104+
),
107105
)
108106
}
109107
}

plugins/src/main/java/com/google/firebase/gradle/plugins/ci/ChangedModulesTask.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ abstract class ChangedModulesTask : DefaultTask() {
5151
val projects =
5252
AffectedProjectFinder(project, changedGitPaths.toSet(), listOf())
5353
.find()
54-
.filter { !onlyFirebaseSDKs || it.extensions.findByType<FirebaseLibraryExtension>() != null }
54+
.filter {
55+
!onlyFirebaseSDKs || it.extensions.findByType<FirebaseLibraryExtension>() != null
56+
}
5557
.map { it.path }
5658
.toSet()
5759

plugins/src/main/java/com/google/firebase/gradle/plugins/semver/DeltaType.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ enum class DeltaType {
255255
(allAfterMethods.keys intersect allBeforeMethods.keys).forEach {
256256
val afterMethod = allAfterMethods.get(it)
257257
val beforeMethod = allBeforeMethods.get(it)
258-
if (beforeMethod != null && afterMethod != null && !beforeMethod.exceptions.containsAll(afterMethod.exceptions)) {
258+
if (
259+
beforeMethod != null &&
260+
afterMethod != null &&
261+
!beforeMethod.exceptions.containsAll(afterMethod.exceptions)
262+
) {
259263
apiDeltas.add(
260264
Delta(
261265
after!!.name,
@@ -282,7 +286,11 @@ enum class DeltaType {
282286
(allAfterMethods.keys intersect allBeforeMethods.keys).forEach {
283287
val afterMethod = allAfterMethods.get(it)
284288
val beforeMethod = allBeforeMethods.get(it)
285-
if (afterMethod != null && beforeMethod != null && !afterMethod.exceptions.containsAll(beforeMethod.exceptions)) {
289+
if (
290+
afterMethod != null &&
291+
beforeMethod != null &&
292+
!afterMethod.exceptions.containsAll(beforeMethod.exceptions)
293+
) {
286294
apiDeltas.add(
287295
Delta(
288296
after!!.name,

0 commit comments

Comments
 (0)