Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Initialize instance variable on the getter too #636

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Apr 5, 2018

The test suite is currently throwing a bunch of warnings from some
recent changes I made -- although we initialize @additive_params when
setting one with self.additive_object_param, we don't when we check
one with self.additive_object_param?. This often isn't a problem
because every API resource sets metadata, but it is from the test
suite and probably for vanilla StripeObjects too.

The test suite is currently throwing a bunch of warnings from some
recent changes I made -- although we initialize `@additive_params` when
setting one with `self.additive_object_param`, we don't when we check
one with `self.additive_object_param?`. This often isn't a problem
because every API resource sets `metadata`, but it is from the test
suite and probably for vanilla `StripeObject`s too.
@brandur-stripe
Copy link
Contributor

(Self-LGTMing this because it's pretty minor.)

@brandur-stripe brandur-stripe merged commit 676670c into master Apr 5, 2018
@brandur-stripe brandur-stripe deleted the brandur-initialize-instance-var branch April 5, 2018 23:12
@brandur-stripe
Copy link
Contributor

Released as 3.12.1.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants