Removed unneeded assignment; added parentheses to method signature.
Fixed 'Ambiguous block operator' warning.
Prevented shadowing of outer local variable
Making the block parameter not as ambiguous.
removing unused local variable.
Merge pull request #2756 from refinery/refactorcop

Refactorcop refactors