summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-12-12 12:19:40 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-13 07:01:52 +0900
commit17559f0420fd925147156e7434916b58c830f44c (patch)
treeb39994774c08169b5f9306dd9ad9766ec15f4cb7 /tool/sync_default_gems.rb
parentf88f2bd92f4a1760c0f323614c45369d6a281317 (diff)
Don't leave backup file around
I suspect this was for debugging? If not, these days we have source control tools, so this wouldn't seem necessary?
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6907
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index b896476773..14390f442b 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -118,7 +118,6 @@ module SyncDefaultGems
"rdoc-ref:#{mod || name.chomp("_rdoc") + ".rdoc"}#{scope}#{label}"
end
changed or return false
- File.rename(file, file + "~")
File.binwrite(file, src)
return true
end