Skip to content

Conversation

@nehresma
Copy link

@nehresma nehresma commented Dec 2, 2025

Remove explicit nil params argument from get_bounce and get_complaint methods in Suppressions class.

After the migration from rest-client to Faraday in 53a8edd, the Client#get method changed to expect params to be a Hash (defaulting to {}), and now calls params[:headers] unconditionally. Passing nil causes "undefined method '[]' for nil:NilClass".

get_unsubscribe was already correct (no nil argument), but get_bounce and get_complaint were not updated to match.

Remove explicit nil params argument from get_bounce and get_complaint
methods in Suppressions class.

After the migration from rest-client to Faraday in 53a8edd, the
Client#get method changed to expect params to be a Hash (defaulting
to {}), and now calls params[:headers] unconditionally. Passing nil
causes "undefined method '[]' for nil:NilClass".

get_unsubscribe was already correct (no nil argument), but get_bounce
and get_complaint were not updated to match.
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