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

add nil check for rake.patch! for future robustness #412

Closed
wants to merge 1 commit into from

Conversation

AknEp
Copy link
Contributor

@AknEp AknEp commented Mar 23, 2016

refs #411

In the future, Rake class possibly change version API, this change prevent nil error in the future.

@AknEp
Copy link
Contributor Author

AknEp commented Mar 23, 2016

I think return true is also okay, could someone judge this feature?

@@ -20,6 +20,7 @@ def self.skip_patch
end

def self.patch?
return false if rake_version.nil?
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this to return false unless rake_version?

Also, you have two many spaces in the indentation.

Thanks!

@jondeandres
Copy link
Contributor

This is merged by other PR, synced with master.

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