Revision fd9f58fd
ID | fd9f58fd334249d86cd4ea4b920d21d97439ea7d |
Parent | 2b5b0fe9 |
Child | e1494c96 |
Introduce a TMaybe combinator
We have many cases in the code where we write TOr(TNone, a), so let's
introduce a combinator that simplifies this case.
Beside replacing the above with TMaybe(a), I did a few other parameter
fixes:
- noop change TOr(TNone, TDict) to TMaybeDict
- noop change TOr(TNone, TNonEmptyString) to TMaybeString
- OpClusterSetParams, change master netmask from any integer to a
non-negative integer
(I can move the last one to a separate patch if desired)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Files
- added
- modified
- copied
- renamed
- deleted