Skip to content

Commit

Permalink
use foldLeft instead of /: (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored and etorreborre committed May 2, 2018
1 parent 6fc1280 commit e5e0b7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ case class Stats(specs: Int = 0,
"pending" -> pending.toString,
"skipped" -> skipped.toString,
"time" -> timer.totalMillis.toString)
(stats /: attributes) { (res, cur) =>
attributes.foldLeft(stats) { (res, cur) =>
if (cur._2 == "0") res
else res % new UnprefixedAttribute(cur._1, cur._2, Null)
}
Expand Down

0 comments on commit e5e0b7a

Please sign in to comment.