refactor: Add parentheses to PathFinder.get (#8497)

This commit is contained in:
kenji yoshida 2026-01-13 05:19:40 +09:00 committed by GitHub
parent 0fa17f7705
commit bc32efbea6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ object Scripted {
import DefaultParsers.*
val scriptedFiles: NameFilter = ("test": NameFilter) | "pending"
val pairs = (scriptedBase * AllPassFilter * AllPassFilter * scriptedFiles).get map {
val pairs = (scriptedBase * AllPassFilter * AllPassFilter * scriptedFiles).get() map {
(f: File) =>
val p = f.getParentFile
(p.getParentFile.getName, p.getName)

View File

@ -7,7 +7,7 @@ object Transform {
resourceGenerators += Def.task {
val rdirs = Seq(sourceDirectory.value / "input_resources")
val rm = resourceManaged.value
val paths = (rdirs ** (-DirectoryFilter)).get --- rdirs
val paths = (rdirs ** (-DirectoryFilter)).get() --- rdirs
val rs = paths.pair(Path.rebase(rdirs, rm) | Path.flat(rm))
val props = Map(
"org" -> organization.value,

View File

@ -69,7 +69,7 @@ object Utils {
val args = "xsbti.api" :: out.getAbsolutePath :: defs.map(_.getAbsolutePath).toList
val mainClass = main getOrElse "No main class defined for datatype generator"
run.run(mainClass, cp.files, args, s.log).failed foreach (e => sys error e.getMessage)
(out ** "*.java").get
(out ** "*.java").get()
}
def lastCompilationTime(analysis: Analysis): Long = {
val lastCompilation = analysis.compilations.allCompilations.lastOption
@ -177,7 +177,7 @@ object Utils {
val _ = (data / Compile / scalafix)
.toTask(s" --rules GenerateDataClass --out-from=$outFrom --out-to=$outTo")
.value
(to ** "*.scala").get
(to ** "*.scala").get()
}
}
}