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 /lib/net | |
parent | 1d63d2bef1538d3dee1cc7c191ab6362c3335adb (diff) | |
download | net-ssh-multi-625ebfdb70efebc67a5f7423b1742c4daad9ae1f.tar.gz |
remove redundant call to block_given?
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/ssh/multi/session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |