Skip to content

Commit

Permalink
Remove unneeded inline-disable comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 committed Jul 1, 2018
1 parent a290da0 commit 20d50f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rubocop/ast/node.rb
Expand Up @@ -91,7 +91,7 @@ def complete?
@mutable_attributes.frozen?
end

protected :parent= # rubocop:disable Style/AccessModifierDeclarations
protected :parent=

# Override `AST::Node#updated` so that `AST::Processor` does not try to
# mutate our ASTs. Since we keep references from children to parents and
Expand Down Expand Up @@ -321,9 +321,7 @@ def const_name
(casgn $_ $_ (send (const nil? {:Class :Module}) :new ...))
(casgn $_ $_ (block (send (const nil? {:Class :Module}) :new ...) ...))}
PATTERN
# rubocop:disable Style/AccessModifierDeclarations
private :defined_module0
# rubocop:enable Style/AccessModifierDeclarations

def defined_module
namespace, name = *defined_module0
Expand Down

0 comments on commit 20d50f0

Please sign in to comment.