run prettier on code
This commit is contained in:
		| @@ -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}]`)); | ||||
|   | ||||
| @@ -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<T extends AST>(array: T[][]): T[] { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user