Skip to content

Commit 2c203f5

Browse files
Broccofilipesilva
authored andcommitted
bug(generate): prevent tracking of noop changes (#3802)
Fixes #3169
1 parent 60ce994 commit 2c203f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@angular-cli/ast-tools/src/change.ts

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export class MultiChange implements Change {
5656
}
5757

5858
appendChange(change: Change) {
59+
// Do not append Noop changes.
60+
if (change instanceof NoopChange) {
61+
return;
62+
}
5963
// Validate that the path is the same for everyone of those.
6064
if (this._path === undefined) {
6165
this._path = change.path;

0 commit comments

Comments
 (0)