diff options
author | Jamis Buck <jamis@37signals.com> | 2009-01-31 21:27:45 -0700 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2009-01-31 21:27:45 -0700 |
commit | 625ebfdb70efebc67a5f7423b1742c4daad9ae1f (patch) | |
tree | ee72881805a1ef1526bca49acbb22985432b2aec | |
parent | 1d63d2bef1538d3dee1cc7c191ab6362c3335adb (diff) | |
download | net-ssh-multi-625ebfdb70efebc67a5f7423b1742c4daad9ae1f.tar.gz |
remove redundant call to block_given?
-rw-r--r-- | CHANGELOG.rdoc | 2 | ||||
-rw-r--r-- | lib/net/ssh/multi/session.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 2ccb3c8..361c3c7 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,5 +1,7 @@ === unreleased +* Remove redundant call to block_given? in Session#group [paddor] + * Add Channel#on_open_failed callback hook [Jamis Buck] diff --git a/lib/net/ssh/multi/session.rb b/lib/net/ssh/multi/session.rb index 40af774..333fdf3 100644 --- a/lib/net/ssh/multi/session.rb +++ b/lib/net/ssh/multi/session.rb @@ -219,7 +219,7 @@ module Net; module SSH; module Multi begin saved_groups = open_groups.dup open_groups.concat(args.map { |a| a.to_sym }).uniq! - yield self if block_given? + yield self ensure open_groups.replace(saved_groups) end @@ -548,4 +548,4 @@ module Net; module SSH; module Multi end end end -end; end; end
\ No newline at end of file +end; end; end |