Skip to content

Commit

Permalink
Use .view where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaden Peterson committed Dec 20, 2024
1 parent d9cc4d0 commit 07ae425
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ object ZincRunner extends WorkerMain[ZincRunnerWorkerConfig] {

val compileOptions =
CompileOptions.create
.withSources(sources.map(source => PlainVirtualFile(source.toAbsolutePath().normalize())).toArray)
.withClasspath((classesOutputDir +: deps.map(_.classpath)).map(path => PlainVirtualFile(path)).toArray)
.withSources(sources.view.map(source => PlainVirtualFile(source.toAbsolutePath().normalize())).toArray)
.withClasspath((classesOutputDir +: deps.map(_.classpath)).view.map(path => PlainVirtualFile(path)).toArray)
.withClassesDirectory(classesOutputDir)
.withJavacOptions(workRequest.javaCompilerOptions)
.withScalacOptions(
Expand Down Expand Up @@ -332,7 +332,7 @@ object ZincRunner extends WorkerMain[ZincRunnerWorkerConfig] {
deps.filter(Dep.used(deps, resultAnalysis.relations, lookup)).filterNot { dep =>
val filteredDepFileName = FileUtil.getNameWithoutRulesJvmExternalStampPrefix(dep.file)

scalaInstance.libraryJars
scalaInstance.libraryJars.view
.map(FileUtil.getNameWithoutRulesJvmExternalStampPrefix)
.contains(filteredDepFileName)
}
Expand Down

0 comments on commit 07ae425

Please sign in to comment.