Skip to content

Improve ruby code on if/unless clauses - #59

Open
tmaier wants to merge 1 commit into
tacitknowledge:masterfrom
tmaier:patch-1
Open

Improve ruby code on if/unless clauses#59
tmaier wants to merge 1 commit into
tacitknowledge:masterfrom
tmaier:patch-1

Conversation

@tmaier

@tmaier tmaier commented Jun 16, 2016

Copy link
Copy Markdown
Contributor

"unless abc.nil?" is bad ruby; "if abc" is simpler and preferred
Also use only_if and not_if where applicable

"unless abc.nil?" is bad ruby; "if abc" is simpler and preferred
Also use only_if and not_if where applicable
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