Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
johnynek committed Dec 13, 2024
1 parent 2967d24 commit 14949ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/scala/org/bykn/bosatsu/Package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ object Package {
val bs = exps.map(_.tag)
Right(i.map(_ => bs))
case None =>
val exMap = pack.exports.groupByNel(_.name)
Left(
PackageError.UnknownImportName(
inside,
Expand All @@ -559,7 +558,7 @@ object Package {
(n: Identifier, ())
}.toMap,
i,
exMap.iterator.flatMap(_._2.toList).toList
pack.exports
)
)
}
Expand All @@ -576,14 +575,13 @@ object Package {
val bs = exps.map(_.tag)
Right(i.map(_ => bs))
case None =>
val exMap = iface.exports.groupByNel(_.name)
Left(
PackageError.UnknownImportFromInterface(
inside,
iface.name,
iface.exports.map(_.name),
i,
exMap.iterator.flatMap(_._2.toList).toList
iface.exports
)
)
}
Expand Down

0 comments on commit 14949ae

Please sign in to comment.