Skip to content

Commit

Permalink
Merge pull request #3 from mcanoglu/master
Browse files Browse the repository at this point in the history
Optional chaining for ng add error Closes Issue #2
  • Loading branch information
manfredsteyer authored Apr 29, 2020
2 parents 04e8f3b + f7a7188 commit 8a3a474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ddd/src/schematics/utils/update-linting-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function checkRuleExists(rules: object, context: SchematicContext) {

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

if (!checkRuleExists(rules, context)) return;
Expand Down

0 comments on commit 8a3a474

Please sign in to comment.