mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Simplify
This commit is contained in:
parent
3803d4582c
commit
4e5a52215a
1 changed files with 1 additions and 3 deletions
|
@ -24,9 +24,7 @@ module Spectator
|
||||||
# Selects and shuffles the examples that should run.
|
# Selects and shuffles the examples that should run.
|
||||||
private def examples
|
private def examples
|
||||||
iterator = @config.iterator(@root)
|
iterator = @config.iterator(@root)
|
||||||
iterator.to_a.tap do |examples|
|
@config.shuffle!(iterator.to_a)
|
||||||
@config.shuffle!(examples)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue