lib/rubocop/rspec/hook.rb in rubocop-rspec-3.2.0 vs lib/rubocop/rspec/hook.rb in rubocop-rspec-3.3.0
- old
+ new
@@ -43,10 +43,10 @@
end
private
def valid_scope?(node)
- node&.sym_type? && Language::HookScopes.all(node.value)
+ node.sym_type? && Language::HookScopes.all(node.value)
end
def transform_metadata(meta)
if meta.sym_type?
{ meta => true }