Skip to content

Commit e052ffc

Browse files
committed
Simplify code
1 parent 89719e5 commit e052ffc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/src/dotty/tools/dotc/CompilationUnit.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,7 @@ class CompilationUnit protected (val source: SourceFile) {
9595
* Depending on how fast the futures are run, sometimes it may
9696
* observe the mutations in the later phase.
9797
*/
98-
def forcePickling()(using Context): Unit =
99-
pickled = pickled.map { (sym, fn) =>
100-
val bytes = fn()
101-
(sym, () => bytes)
102-
}
98+
def forcePickling()(using Context): Unit = pickled.foreach(_._2())
10399
}
104100

105101
object CompilationUnit {

0 commit comments

Comments
 (0)