-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error early when params not specified for card functions
Card-related API calls are a bit of an unusual case because we need to have an instantiated params struct in order to determine the correct URL to which to make the request. Previously, if a `nil` was passed to any of these functions, we'd panic as we tried to access one of its members. This patch just makes the params requirement a little more explicit by returning an error if any of card functions is called with `nil` params. Fixes #483.
- Loading branch information
Showing
2 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters