Commit 4c38fe6
Avoid using block_given in the presence of aliases
defined?(yield) bypasses the block_given? method (or any aliases
to it) and always does the right thing.1 parent 48d7154 commit 4c38fe6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments