diff options
author | Daniel Berger <djberg96@gmail.com> | 2022-06-06 01:46:01 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-06-07 23:18:31 +0900 |
commit | deff9e2699c46075c3bb9b9e1bf9f721a12a2ca3 (patch) | |
tree | e4108b7b52de677f5deba1ac8945bb6cbd46b38c /lib/rubygems/specification.rb | |
parent | c4bf24ee4672cc24a9355a08eb9afd3dbb073be5 (diff) |
[rubygems/rubygems] Remove unnecessary string concatenation
https://github.com/rubygems/rubygems/commit/81ccb3ab89
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r-- | lib/rubygems/specification.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 5d94efe5bc..01d3fd0eff 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -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 |