Skip to content

Commit

Permalink
Added explicitly begin-end
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 20, 2023
1 parent 56ef44e commit 7201966
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/lib/core_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -781,11 +781,13 @@ def assert_all_assertions_foreach(msg = nil, *keys, &block)
].find do |c|
if Process.const_defined?(c)
[c.to_sym, Process.const_get(c)].find do |clk|
Process.clock_gettime(clk)
rescue
# Constants may be defined but not implemented, e.g., mingw.
else
PERFORMANCE_CLOCK = clk
begin
Process.clock_gettime(clk)
rescue
# Constants may be defined but not implemented, e.g., mingw.
else
PERFORMANCE_CLOCK = clk
end
end
end
end
Expand Down

0 comments on commit 7201966

Please sign in to comment.