From 4b1012537f7b67c4e4c3a690003f5cb1f3cbfc48 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Thu, 19 May 2016 09:08:25 -0700 Subject: [PATCH] Use #take instead of #take_while --- features/support/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/support/formatter.rb b/features/support/formatter.rb index a075f18c..b216323f 100644 --- a/features/support/formatter.rb +++ b/features/support/formatter.rb @@ -195,7 +195,7 @@ module Jekyll def print_worst_offenders @io.puts @io.puts "Worst offenders:" - @timings.sort_by { |_f, t| -t }.take_while { |i| i < 10 }.each do |(f, t)| + @timings.sort_by { |_f, t| -t }.take(10).each do |(f, t)| @io.puts " #{t}s for #{f}" end @io.puts