[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 committed by git
parent c4bf24ee46
commit deff9e2699
1 changed files with 2 additions and 3 deletions

View File

@ -1240,8 +1240,7 @@ class Gem::Specification < Gem::BasicSpecification
clear_load_cache
unresolved = unresolved_deps
unless unresolved.empty?
w = "W" + "ARN"
warn "#{w}: Unresolved or ambiguous specs during Gem::Specification.reset:"
warn "WARN: Unresolved or ambiguous specs during Gem::Specification.reset:"
unresolved.values.each do |dep|
warn " #{dep}"
@ -1251,7 +1250,7 @@ class Gem::Specification < Gem::BasicSpecification
versions.each {|s| warn " - #{s.version}" }
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."
unresolved.clear
end