Skip to content

Fix to handle nil values in json_safe_and_pretty#823

Merged
justin808 merged 2 commits intomasterfrom
sergey/fix-nil-values-in-pretty-json
Apr 27, 2017
Merged

Fix to handle nil values in json_safe_and_pretty#823
justin808 merged 2 commits intomasterfrom
sergey/fix-nil-values-in-pretty-json

Conversation

@dzirtusss
Copy link
Copy Markdown
Contributor

@dzirtusss dzirtusss commented Apr 27, 2017

This change is Reviewable

@dzirtusss dzirtusss force-pushed the sergey/fix-nil-values-in-pretty-json branch 3 times, most recently from ec884bf to 67e200b Compare April 27, 2017 07:54
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 27, 2017

Coverage Status

Coverage increased (+0.002%) to 98.022% when pulling 67e200b on sergey/fix-nil-values-in-pretty-json into 04e3b5f on master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 98.022% when pulling 67e200b on sergey/fix-nil-values-in-pretty-json into 04e3b5f on master.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 27, 2017

Coverage Status

Coverage increased (+0.002%) to 98.022% when pulling 67e200b on sergey/fix-nil-values-in-pretty-json into 04e3b5f on master.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 27, 2017

Coverage Status

Coverage increased (+0.002%) to 98.022% when pulling 67e200b on sergey/fix-nil-values-in-pretty-json into 04e3b5f on master.

end

def json_safe_and_pretty(hash_or_string)
return if hash_or_string.nil?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we add a quick test?

@dzirtusss dzirtusss force-pushed the sergey/fix-nil-values-in-pretty-json branch from 67e200b to 2564691 Compare April 27, 2017 08:50
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 98.022% when pulling 2564691 on sergey/fix-nil-values-in-pretty-json into 04e3b5f on master.

1 similar comment
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 98.022% when pulling 2564691 on sergey/fix-nil-values-in-pretty-json into 04e3b5f on master.

@justin808 justin808 merged commit 22fa5c4 into master Apr 27, 2017
@justin808 justin808 deleted the sergey/fix-nil-values-in-pretty-json branch April 27, 2017 09:23
@justin808
Copy link
Copy Markdown
Member

Great job @dzirtusss!

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 98.022% when pulling 19738fa on sergey/fix-nil-values-in-pretty-json into 04e3b5f on master.

1 similar comment
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 98.022% when pulling 19738fa on sergey/fix-nil-values-in-pretty-json into 04e3b5f on 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.

3 participants