From c60705d5fa14cda87be317542c83652ebadf6003 Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Thu, 28 May 2020 19:36:21 +0200 Subject: [PATCH] run prettier on code --- src/cli/tasks/extract.task.ts | 2 +- src/parsers/pipe.parser.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/tasks/extract.task.ts b/src/cli/tasks/extract.task.ts index 20a8a8a..9c03c0a 100644 --- a/src/cli/tasks/extract.task.ts +++ b/src/cli/tasks/extract.task.ts @@ -74,7 +74,7 @@ export class ExtractTask implements TaskInterface { try { let event = 'CREATED'; if (fs.existsSync(outputPath)) { - this.options.replace ? event = 'REPLACED' : event = 'MERGED'; + this.options.replace ? (event = 'REPLACED') : (event = 'MERGED'); } this.save(outputPath, final); this.out(`%s %s`, dim(`- ${outputPath}`), green(`[${event}]`)); diff --git a/src/parsers/pipe.parser.ts b/src/parsers/pipe.parser.ts index 2a5033b..73a2c89 100644 --- a/src/parsers/pipe.parser.ts +++ b/src/parsers/pipe.parser.ts @@ -135,7 +135,7 @@ export class PipeParser implements ParserInterface { } protected getTranslatablesFromAsts(asts: AST[]): BindingPipe[] { - return this.flatten(asts.map(ast => this.getTranslatablesFromAst(ast))); + return this.flatten(asts.map((ast) => this.getTranslatablesFromAst(ast))); } protected flatten(array: T[][]): T[] {