Skip to content

Conversation

@yous
Copy link
Contributor

@yous yous commented Jul 24, 2014

f = File.open('testfile') is not boolean, so avoid non-nil checks. Also keep line length to 80.

@bbatsov
Copy link
Collaborator

bbatsov commented Jul 24, 2014

Thanks!

bbatsov added a commit that referenced this pull request Jul 24, 2014
@bbatsov bbatsov merged commit e9ccd48 into rubocop:master Jul 24, 2014
@yous yous deleted the patch-avoid-non-nil-checks branch July 24, 2014 22:28
marocchino pushed a commit to marocchino/ruby-style-guide that referenced this pull request Aug 11, 2015
shyouhei pushed a commit to shyouhei/ruby-style-guide that referenced this pull request Nov 11, 2015
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.

2 participants