Created
May 5, 2021 08:55
-
-
Save ofelix03/df925041fa8f2210ac35061242defa6f to your computer and use it in GitHub Desktop.
refactoring-simplifyin-and-merging-if-conditionals
This file contains hidden or 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
| if "internal_hold" in vals and vals["internal_hold"]: | |
| vals["state"] = "internally_held" | |
| else | |
| vals["state"] = "draft" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment