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 duplicate then statement; collapse duplicate if statements #1219

Merged
merged 1 commit into from Jan 23, 2017

Conversation

grimreaper
Copy link
Contributor

No description provided.

} else {
action.processFile(f);
}
action.processFile(f);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a cursory inspection seems to indicate this is the correct fix but there is a good chance I missed the logic here and really the the first if statement should be changed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is correct assuming that f.isDirectory() has no side effects. I checked all implementors of FileCopyDetails.isDirectory() and that seems to be correct.

@eriwen
Copy link
Contributor

eriwen commented Jan 20, 2017

@grimreaper Thanks for the quick cleanup PR. I'm afraid I don't see a CLA from you yet. Would you please sign one so we can move forward?

@grimreaper
Copy link
Contributor Author

grimreaper commented Jan 21, 2017

signed

@eriwen eriwen added cla:yes and removed cla:no labels Jan 23, 2017
@eriwen eriwen merged commit 3e17270 into gradle:master Jan 23, 2017
@eriwen
Copy link
Contributor

eriwen commented Jan 23, 2017

@grimreaper thanks! — merged

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.

None yet

2 participants