[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin

b595d3cf0f
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 14:10:30 +09:00
parent a532e9dc37
commit 72d09a568f
16 changed files with 148 additions and 188 deletions

View file

@ -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
parser.parse!(args.dup)
return true
rescue StandardError
return false
end
##