aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/errors.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-07 09:15:17 +0900
committergit <svn-admin@ruby-lang.org>2023-04-07 05:13:05 +0000
commit250e97c0fba48d1f87ccecb1b1e1b4bd2a30c388 (patch)
treeb9018bb2916c2e007b7f57981295e4c4f0fd5adc /lib/rubygems/errors.rb
parent84ce6fc87347c15cc81939de2d1872984711a4ed (diff)
downloadruby-250e97c0fba48d1f87ccecb1b1e1b4bd2a30c388.tar.gz
[rubygems/rubygems] util/rubocop -A --only Style/FormatString
https://github.com/rubygems/rubygems/commit/132a56569d
Diffstat (limited to 'lib/rubygems/errors.rb')
-rw-r--r--lib/rubygems/errors.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rubygems/errors.rb b/lib/rubygems/errors.rb
index 4c2f7b896e..be6c34dc85 100644
--- a/lib/rubygems/errors.rb
+++ b/lib/rubygems/errors.rb
@@ -134,11 +134,7 @@ module Gem
##
# A wordy description of the error.
def wordy
- "Found %s (%s), but was for platform%s %s" %
- [@name,
- @version,
- @platforms.size == 1 ? "" : "s",
- @platforms.join(" ,")]
+ format("Found %s (%s), but was for platform%s %s", @name, @version, @platforms.size == 1 ? "" : "s", @platforms.join(" ,"))
end
end