From 2cf2514f28639a82b8754e875bd593d78ea0ff71 Mon Sep 17 00:00:00 2001 From: Ben Liblit Date: Tue, 30 Jul 2024 21:00:21 -0400 Subject: [PATCH] Remove a redundant `asSequence()` call The `FileCollection` provided by `outputs.files` already offers an `elementAt(Int)` method. There's no need to convert this `FileCollection` to a `Sequence` just for indexed access. --- build-logic/src/main/kotlin/com/ibm/wala/gradle/cast/helpers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-logic/src/main/kotlin/com/ibm/wala/gradle/cast/helpers.kt b/build-logic/src/main/kotlin/com/ibm/wala/gradle/cast/helpers.kt index 2a04ca19ce..6a3c425c58 100644 --- a/build-logic/src/main/kotlin/com/ibm/wala/gradle/cast/helpers.kt +++ b/build-logic/src/main/kotlin/com/ibm/wala/gradle/cast/helpers.kt @@ -93,4 +93,4 @@ val AbstractLinkTask.nativeLibraryOutput: File get() = // On all supported platforms, the link task's first two outputs are a directory and a library // in that directory. On Windows, the link task also has a third output file: a DLL. - outputs.files.asSequence().elementAt(1) + outputs.files.elementAt(1)