Skip to content

Commit

Permalink
bug(generate): prevent tracking of noop changes (#3802)
Browse files Browse the repository at this point in the history
Fixes #3169
  • Loading branch information
Brocco authored and filipesilva committed Dec 31, 2016
1 parent 60ce994 commit 2c203f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@angular-cli/ast-tools/src/change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export class MultiChange implements Change {
}

appendChange(change: Change) {
// Do not append Noop changes.
if (change instanceof NoopChange) {
return;
}
// Validate that the path is the same for everyone of those.
if (this._path === undefined) {
this._path = change.path;
Expand Down

0 comments on commit 2c203f5

Please sign in to comment.