[rubygems/rubygems] Remove unnecessary string concatenation

https://github.com/rubygems/rubygems/commit/81ccb3ab89
This commit is contained in:
Daniel Berger 2022-06-06 01:46:01 -04:00 коммит произвёл git
Родитель c4bf24ee46
Коммит deff9e2699
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -1240,8 +1240,7 @@ class Gem::Specification < Gem::BasicSpecification
clear_load_cache clear_load_cache
unresolved = unresolved_deps unresolved = unresolved_deps
unless unresolved.empty? unless unresolved.empty?
w = "W" + "ARN" warn "WARN: Unresolved or ambiguous specs during Gem::Specification.reset:"
warn "#{w}: Unresolved or ambiguous specs during Gem::Specification.reset:"
unresolved.values.each do |dep| unresolved.values.each do |dep|
warn " #{dep}" warn " #{dep}"
@ -1251,7 +1250,7 @@ class Gem::Specification < Gem::BasicSpecification
versions.each {|s| warn " - #{s.version}" } versions.each {|s| warn " - #{s.version}" }
end end
end end
warn "#{w}: Clearing out unresolved specs. Try 'gem cleanup <gem>'" warn "WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'"
warn "Please report a bug if this causes problems." warn "Please report a bug if this causes problems."
unresolved.clear unresolved.clear
end end