From 4e5a52215a18470ac48534cfb6146a62c4e251e3 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Mon, 16 Aug 2021 20:27:27 -0600 Subject: [PATCH] Simplify --- src/spectator/spec.cr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/spectator/spec.cr b/src/spectator/spec.cr index 9aec3a0..a086171 100644 --- a/src/spectator/spec.cr +++ b/src/spectator/spec.cr @@ -24,9 +24,7 @@ module Spectator # Selects and shuffles the examples that should run. private def examples iterator = @config.iterator(@root) - iterator.to_a.tap do |examples| - @config.shuffle!(examples) - end + @config.shuffle!(iterator.to_a) end end end