diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-09-12 13:33:22 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-09-12 15:10:16 +0900 |
commit | f1c78b23313e63eb31a213cc7277b1eb206a581b () | |
tree | 180eb15910afc42739f78e2f0409595c7a944ccb /tool/lib/core_assertions.rb | |
parent | 8953fc774c542a8bf3c9a2be39bcbd1d5341e3a8 (diff) |
Suppress warning for shadowing outer local variable
Notes: Merged: https://.com/ruby/ruby/pull/8419
-rw-r--r-- | tool/lib/core_assertions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -778,9 +778,9 @@ eom %w[ CLOCK_THREAD_CPUTIME_ID CLOCK_PROCESS_CPUTIME_ID CLOCK_MONOTONIC - ].find do |clk| - if Process.const_defined?(clk) - [clk.to_sym, Process.const_get(clk)].find do |clk| Process.clock_gettime(clk) rescue # Constants may be defined but not implemented, e.g., mingw. |