Skip to content

Commit

Permalink
polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
pniederw committed Apr 5, 2012
1 parent 6a0479e commit 62812ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/org/expecty/ExpressionRenderer.scala
Expand Up @@ -33,8 +33,8 @@ class ExpressionRenderer(showTypes: Boolean) {

private[this] def filterAndSortByAnchor(recordedValues: List[RecordedValue]): Traversable[RecordedValue] = {
var map = TreeMap[Int, RecordedValue]()(Ordering.by(-_))
// values stemming from compiler generated code have the same anchor as regular values,
// and apparently tend to get recorded before them; let's filter them out
// values stemming from compiler generated code often have the same anchor as regular values
// and get recorded before them; let's filter them out
for (value <- recordedValues) if (!map.contains(value.anchor)) map += (value.anchor -> value)
map.values
}
Expand Down

0 comments on commit 62812ef

Please sign in to comment.