mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 20:52:06 +08:00
A `null` value is not considered a valid return value for a schematics Rule. While the Rule type should prevent this, casting could allow this to potentially occur. Previously, this would accidentally be treated the same as a void return due to incomplete result checking. However, recent refactoring caused the `null` case to fail with a non-obvious error message when it should have failed with the existing `InvalidRuleResultException`. Non-tree result objects including `null` will now fail with `InvalidRuleResultException`.