-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use REST config instead of client config (#66)
This updates the `NewWhoCan` method to take a `rest.Config` object instead of a `ClientConfig` object. This allows the consumer of the API to use a custom `rest.Config` object rather than relying on the one created from the `ClientConfig` object. This also removes the `clientConfig` field from the `WhoCan` object. It is only used within the `ActionFrom` method, and it is passed in as an argument. As a result, there is no need to store it on the `WhoCan` object. Signed-off-by: Bridget McErlean <[email protected]>
- Loading branch information
Showing
2 changed files
with
10 additions
and
13 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