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

Fixes #7322 - Fixed handling of empty body (just whitespaces) #4632

Merged
merged 1 commit into from Sep 19, 2014

Conversation

mbacovsky
Copy link
Contributor

No description provided.

@@ -5,6 +5,7 @@ module ActionDispatch

# Remove nils from the params hash
def deep_munge(hash)
return {} if hash.nil?
Copy link
Member

Choose a reason for hiding this comment

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

Do we need the explicit return here? Since this function returns hash anyway, could we not just do something like hash ||= {} ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that would be better @ehelms. Fixed.

@ehelms
Copy link
Member

ehelms commented Sep 17, 2014

APJ. Thanks @mbacovsky !

@mbacovsky
Copy link
Contributor Author

fixed & rebased

ehelms added a commit that referenced this pull request Sep 19, 2014
Fixes #7322 - Fixed handling of empty body (just whitespaces)
@ehelms ehelms merged commit 72090bf into Katello:master Sep 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants