lib/rubocop/cop/style/lambda.rb in rubocop-0.18.1 vs lib/rubocop/cop/style/lambda.rb in rubocop-0.19.0

- old
+ new

@@ -22,12 +22,12 @@ if block_method == TARGET selector = block_method.loc.selector.source lambda_length = lambda_length(node) if selector != '->' && lambda_length == 0 - add_offence(block_method, :expression, SINGLE_MSG) + add_offense(block_method, :expression, SINGLE_MSG) elsif selector == '->' && lambda_length > 0 - add_offence(block_method, :expression, MULTI_MSG) + add_offense(block_method, :expression, MULTI_MSG) end end end private