[rubygems/rubygems] Prevent a "warning: assigned but unused variable - data"
authorYusuke Endoh <[email protected]>
Fri, 30 Sep 2022 01:53:22 +0000 (30 10:53 +0900)
committergit <[email protected]>
Fri, 30 Sep 2022 06:50:46 +0000 (30 15:50 +0900)
https://github.com/rubygems/rubygems/commit/ec3fd55d40

test/rubygems/utilities.rb

index a4f6a71..8b9fa98 100644 (file)
@@ -93,7 +93,7 @@ class Gem::FakeFetcher
 
   # Thanks, FakeWeb!
   def open_uri_or_path(path)
-    data = find_data(path)
+    find_data(path)
 
     create_response(uri)
   end