Skip to content

Commit 8a3a474

Browse files
Merge pull request #3 from mcanoglu/master
Optional chaining for ng add error Closes Issue #2
2 parents 04e8f3b + f7a7188 commit 8a3a474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/ddd/src/schematics/utils/update-linting-rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function checkRuleExists(rules: object, context: SchematicContext) {
3232

3333
export function addDomainToLintingRules(domainName: string): Rule {
3434
return (host: Tree, context: SchematicContext) => {
35-
const text = host.read('tslint.json').toString();
35+
const text = host.read('tslint.json')?.toString();
3636
const rules = JSON.parse(text);
3737

3838
if (!checkRuleExists(rules, context)) return;

0 commit comments

Comments
 (0)