mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
This commit is contained in:
parent
ef481c120c
commit
955f1837a1
Notes:
git
2020-06-15 21:21:04 +09:00
99 changed files with 469 additions and 469 deletions
|
@ -138,7 +138,7 @@ class Gem::CommandManager
|
|||
# Return a sorted list of all command names as strings.
|
||||
|
||||
def command_names
|
||||
@commands.keys.collect {|key| key.to_s}.sort
|
||||
@commands.keys.collect {|key| key.to_s }.sort
|
||||
end
|
||||
|
||||
##
|
||||
|
@ -203,9 +203,9 @@ class Gem::CommandManager
|
|||
def find_command_possibilities(cmd_name)
|
||||
len = cmd_name.length
|
||||
|
||||
found = command_names.select { |name| cmd_name == name[0, len] }
|
||||
found = command_names.select {|name| cmd_name == name[0, len] }
|
||||
|
||||
exact = found.find { |name| name == cmd_name }
|
||||
exact = found.find {|name| name == cmd_name }
|
||||
|
||||
exact ? [exact] : found
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue