Skip to content

Commit 9e9d138

Browse files
committed
style(rubocop): fix rubocop offenses from new cops
1 parent 2f2b49c commit 9e9d138

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/bundler/gem_bytes/actions/gemspec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def on_block(node)
136136
def on_send(node)
137137
return unless processing_gemspec_block?
138138

139-
handle_dependency(node) || handle_attribute(node)
139+
handle_dependency?(node) || handle_attribute?(node)
140140
end
141141

142142
# Removes a dependency from the Gem::Specification block
@@ -204,7 +204,7 @@ def add_development_dependency(gem_name, version_constraint)
204204
# @param node [Parser::AST::Node] the node to check if it is a dependency
205205
# @return [Boolean] true if the node is a dependency, false otherwise
206206
# @api private
207-
def handle_dependency(node)
207+
def handle_dependency?(node)
208208
return false unless (match = dependency_pattern.match(node))
209209

210210
dependencies << DependencyNode.new(node, Dependency.new(*match))
@@ -216,7 +216,7 @@ def handle_dependency(node)
216216
# @param node [Parser::AST::Node] the node to check if it is an attribute
217217
# @return [Boolean] true if the node is an attribute, false otherwise
218218
# @api private
219-
def handle_attribute(node)
219+
def handle_attribute?(node)
220220
return false unless (match = attribute_pattern.match(node))
221221
return false unless match[0].end_with?('=')
222222

0 commit comments

Comments
 (0)