lib/rubocop/cop/style/lambda.rb in rubocop-0.68.1 vs lib/rubocop/cop/style/lambda.rb in rubocop-0.69.0
- old
+ new
@@ -48,12 +48,12 @@
# end
class Lambda < Cop
include ConfigurableEnforcedStyle
LITERAL_MESSAGE = 'Use the `-> { ... }` lambda literal syntax for ' \
- '%<modifier>s lambdas.'.freeze
+ '%<modifier>s lambdas.'
METHOD_MESSAGE = 'Use the `lambda` method for %<modifier>s ' \
- 'lambdas.'.freeze
+ 'lambdas.'
OFFENDING_SELECTORS = {
style: {
lambda: { single_line: '->', multiline: '->' },
literal: { single_line: 'lambda', multiline: 'lambda' },