Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistently add empty types where they are nil in spec
In a few places we check for nil types when modifying a spec, but in many cases we do not so we could get a panic if the passed in type was not filled. Because the generated spec is filled we will not notice this but users may get unexpected panics. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
- Loading branch information
1 parent
8c2acf4
commit 0ee2f35
Showing
3 changed files
with
51 additions
and
10 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
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