Skip to content

Commit

Permalink
Fix scalafix error
Browse files Browse the repository at this point in the history
  • Loading branch information
ilx committed Aug 12, 2024
1 parent 170eef5 commit 75dc239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package com.twitter.chill

import scala.collection.JavaConverters
import scala.collection.JavaConverters._
import scala.collection.immutable.{ArraySeq, HashMap, HashSet, ListMap, ListSet, NumericRange, Queue}
import scala.collection.immutable.{ArraySeq, ListMap, ListSet, NumericRange, Queue}
import scala.runtime.VolatileByteRef

object SerializedExamplesData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ClosureCleanerSpec extends AnyWordSpec with Matchers {
Option(j).map(x => x + someSerializableMethod())
}
val closure3 = (m: Int) => {
Option(m).foreach(x => Option(x).foreach(y => Option(y).foreach(z => someSerializableValue)))
Option(m).foreach(x => Option(x).foreach(y => Option(y).foreach(_ => someSerializableValue)))
}

serializableFn(closure1, before = false, after = true)
Expand All @@ -110,7 +110,7 @@ class ClosureCleanerSpec extends AnyWordSpec with Matchers {
Option(j).map(x => x + someSerializableMethod())
}
val closure3 = (m: Int) => {
Option(m).foreach(x => Option(x).foreach(y => Option(y).foreach(z => someSerializableValue)))
Option(m).foreach(x => Option(x).foreach(y => Option(y).foreach(_ => someSerializableValue)))
}

serializableFn(closure1, before = false, after = false)
Expand Down

0 comments on commit 75dc239

Please sign in to comment.