Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

fix(@schematics/angular): fix for errors when content is null #326

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/angular_devkit/schematics/src/sink/dryrun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ export class DryRunSink extends FileSystemSink {
}
}

const content = null;
this._subject.next({ kind: 'delete', path, content });
this._subject.next({ kind: 'delete', path });
});
this._filesToCreate.forEach((content, path) => {
// Check if this is a renaming.
Expand All @@ -106,7 +105,7 @@ export class DryRunSink extends FileSystemSink {
this._subject.next({ kind: 'update', path, content: content.generate() });
});
this._filesToRename.forEach(([path, to]) => {
this._subject.next({ kind: 'rename', path, to, content: null });
this._subject.next({ kind: 'rename', path, to });
});

this._subject.complete();
Expand Down