Skip to content

Commit

Permalink
C# - update usage of SourceFiles.determine (#5183)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierpinho authored Dec 15, 2024
1 parent 97cc385 commit 70b610d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object CSharpProgramSummary {
}

def fromExternalJsons(paths: Set[String]): NamespaceToTypeMap = {
val jsonFiles = SourceFiles.determine(paths, Set(".json"))(VisitOptions.default)
val jsonFiles = paths.flatMap(SourceFiles.determine(_, Set(".json"))(VisitOptions.default)).toList
val inputStreams = jsonFiles.flatMap { path =>
Try(java.io.FileInputStream(path)) match {
case Success(stream) => Some(stream)
Expand Down

0 comments on commit 70b610d

Please sign in to comment.