Skip to content

Commit

Permalink
Suppress InternalAffairs/NodeTypeMultiplePredicates offense
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Feb 2, 2025
1 parent ec6ea09 commit 54f970a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rake/desc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def on_task(node)
end

private def can_insert_desc_to?(parent)
parent.begin_type? || parent.block_type? || parent.kwbegin_type?
parent.type?(:begin, :block, :kwbegin)
end
end
end
Expand Down

0 comments on commit 54f970a

Please sign in to comment.