Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove assignment within conditional in File#body #78

Merged
merged 1 commit into from
Mar 25, 2015
Merged

Remove assignment within conditional in File#body #78

merged 1 commit into from
Mar 25, 2015

Conversation

greysteil
Copy link
Contributor

Came across this today. Hopefully this change makes the method a little easier to read.

@geemus
Copy link
Member

geemus commented Mar 25, 2015

Seems like a good clarifying change. We tend to avoid ternaries in the style we use though, could you expand those into regular if/else statements? With that done I'll be happy to bring this in. Thanks!

@greysteil
Copy link
Contributor Author

Done!

@geemus
Copy link
Member

geemus commented Mar 25, 2015

Thanks, looks solid!

geemus added a commit that referenced this pull request Mar 25, 2015
Remove assignment within conditional in File#body
@geemus geemus merged commit 4baad70 into fog:master Mar 25, 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