mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
This commit is contained in:
parent
8980b53a48
commit
7d30cd47c4
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ module DRb
|
|||
def add(obj)
|
||||
synchronize do
|
||||
begin
|
||||
@map[obj] = self
|
||||
@map[obj] = self
|
||||
rescue ArgumentError
|
||||
@immutable[obj.__id__] = obj
|
||||
end
|
||||
|
@ -30,7 +30,7 @@ module DRb
|
|||
|
||||
def fetch(ref)
|
||||
synchronize do
|
||||
@immutable.fetch(ref) {
|
||||
@immutable.fetch(ref) {
|
||||
@map.each { |key, _|
|
||||
return key if key.__id__ == ref
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue