-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename new function to set_enum_based_on_type
This function only support setting the enum field, and it doesn't appear likely that we will want to set other fields in future, so make the name more specific. Additionally, add a docstring, and refactor the function to use the early-return pattern now adding other metadata is ruled out. Signed-off-by: Alice Purcell <[email protected]>
- Loading branch information
1 parent
fa6a37f
commit dbb4a66
Showing
2 changed files
with
13 additions
and
8 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