Skip to content

Conversation

@sjavonehq
Copy link

Fix RuboCop Style/MultipleComparison offense in Creek sheet parser

This PR cleans up a RuboCop Style/MultipleComparison offense in lib/creek/sheet.rb by replacing repeated equality checks with a more idiomatic and readable Array#include? expression.

Before
(node.name == name_v || node.name == name_t) && node.node_type == opener

After
[name_v, name_t].include?(node.name) && node.node_type == opener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant