run prettier on code

This commit is contained in:
Kim Biesbjerg 2020-05-28 19:36:21 +02:00
parent 85cd1e4a46
commit c60705d5fa
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ export class ExtractTask implements TaskInterface {
try { try {
let event = 'CREATED'; let event = 'CREATED';
if (fs.existsSync(outputPath)) { if (fs.existsSync(outputPath)) {
this.options.replace ? event = 'REPLACED' : event = 'MERGED'; this.options.replace ? (event = 'REPLACED') : (event = 'MERGED');
} }
this.save(outputPath, final); this.save(outputPath, final);
this.out(`%s %s`, dim(`- ${outputPath}`), green(`[${event}]`)); this.out(`%s %s`, dim(`- ${outputPath}`), green(`[${event}]`));

View File

@ -135,7 +135,7 @@ export class PipeParser implements ParserInterface {
} }
protected getTranslatablesFromAsts(asts: AST[]): BindingPipe[] { 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<T extends AST>(array: T[][]): T[] { protected flatten<T extends AST>(array: T[][]): T[] {