Skip to content

Commit

Permalink
Remove a redundant asSequence() call
Browse files Browse the repository at this point in the history
The `FileCollection` provided by `outputs.files` already offers an
`elementAt(Int)` method.  There's no need to convert this
`FileCollection` to a `Sequence<File>` just for indexed access.
  • Loading branch information
liblit committed Jul 31, 2024
1 parent e15e365 commit ad05d02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ad05d02

Please sign in to comment.