[rubygems/rubygems] util/rubocop -A

8c9ea5d180
This commit is contained in:
Hiroshi SHIBATA 2023-04-04 12:12:02 +09:00 committed by git
parent a881b33818
commit 06da0d1456
3 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ module Gem::LocalRemoteOptions
add_option(:"Local/Remote", "-s", "--source URL", URI::HTTP,
"Append URL to list of remote gem sources") do |source, options|
source << "/" if !/\/\z/.match?(source)
source << "/" unless source.end_with?("/")
if options.delete :sources_cleared
Gem.sources = [source]