summaryrefslogtreecommitdiff
path: root/lib/rubygems/command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 14:10:30 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit72d09a568f9f50ce7c41ef2999d272f77a207a8c ()
treeaeb539d5e35ea0ad2ee7880f30d5095afdd7bf34 /lib/rubygems/command.rb
parenta532e9dc37bb7ff2fb36966327f71a74163d9616 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
https://.com/rubygems/rubygems/commit/b595d3cf0f
-rw-r--r--lib/rubygems/command.rb10
1 files changed, 4 insertions, 6 deletions
@@ -429,12 +429,10 @@ class Gem::Command
# True if the command handles the given argument list.
def handles?(args)
- begin
- parser.parse!(args.dup)
- return true
- rescue StandardError
- return false
- end
end
##