Skip to content

Conversation

@berkes
Copy link

@berkes berkes commented Jul 5, 2016

Avoid gsubbing nil values, or other types such as booleans, integers etc.

Especially since the unescape nil casts to nil and one cannot gsub on
nil. Raising an NoMethodError: undefined methodgsub!' for
nil:NilClass` exception.

Especially since the unescape nil casts to nil and one cannot gsub on
nil. Raising an `NoMethodError: undefined method `gsub!' for
nil:NilClass` exception.
@berkes
Copy link
Author

berkes commented Jul 5, 2016

I could not find any tests with this project, so assumed fixing the code is good enough. Please let me know if I need to add some tests to some tests somewhere, in case I missed that.

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.

1 participant