Skip to content

Commit 625ebfd

Browse files
committed
remove redundant call to block_given?
1 parent 1d63d2b commit 625ebfd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.rdoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
=== unreleased
22

3+
* Remove redundant call to block_given? in Session#group [paddor]
4+
35
* Add Channel#on_open_failed callback hook [Jamis Buck]
46

57

lib/net/ssh/multi/session.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def group(*args)
219219
begin
220220
saved_groups = open_groups.dup
221221
open_groups.concat(args.map { |a| a.to_sym }).uniq!
222-
yield self if block_given?
222+
yield self
223223
ensure
224224
open_groups.replace(saved_groups)
225225
end
@@ -548,4 +548,4 @@ def realize_pending_connections! #:nodoc:
548548
end
549549
end
550550
end
551-
end; end; end
551+
end; end; end

0 commit comments

Comments
 (0)