lib/rubocop/cop/naming/constant_name.rb in rubocop-1.20.0 vs lib/rubocop/cop/naming/constant_name.rb in rubocop-1.21.0
- old
+ new
@@ -52,10 +52,10 @@
end
private
def allowed_assignment?(value)
- value && %i[block const casgn].include?(value.type) ||
+ (value && %i[block const casgn].include?(value.type)) ||
allowed_method_call_on_rhs?(value) ||
class_or_struct_return_method?(value) ||
allowed_conditional_expression_on_rhs?(value)
end