summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2024-09-13 11:32:21 +0900
committerYusuke Endoh <mame@ruby-lang.org>2024-09-13 11:32:51 +0900
commitd1d0c50c9d557d57cd0c209e5e2759a05eed3f05 (patch)
treed359455b99caeeab7d80965f91f86e64c2dc94be /test/ruby
parentd80a81c1526cc01a4cbd2e2bb3e0feae5bd9c800 (diff)
Prevent a warning: assigned but unused variable - t0
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index e3aabb4287..eae9a8e7b0 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -378,7 +378,7 @@ class TestFile < Test::Unit::TestCase
file.close
path = file.path
- t0 = measure_time do
+ measure_time do
File.write(path, "foo")
end