@@ -29,18 +29,18 @@ module.exports = class Processor {
2929 * @returns {* }
3030 */
3131 processFile ( config ) {
32- let file = new File ( ) ;
32+ const file = new File ( ) ;
3333
34- let pathSource = this . resolvePath ( config . source ) ,
35- pathOutput = this . resolvePath ( config . output ) ;
34+ const pathSource = this . resolvePath ( config . source ) ;
35+ const pathOutput = this . resolvePath ( config . output ) ;
3636
37- let packageJsonPath = this . resolvePath ( pathSource ) ,
38- packageJsonContent = fs . readFileSync ( packageJsonPath ) ;
37+ const packageJsonPath = this . resolvePath ( pathSource ) ;
38+ const packageJsonContent = fs . readFileSync ( packageJsonPath ) ;
3939
4040 /** @param {{extra: {}} } content */
41- let packageJson = JSON . parse ( packageJsonContent ) ,
42- solvedJson = this . resolveOverwritten ( config . envMap ) ,
43- completedJson = this . constructor . getMergedData ( packageJson , solvedJson ) ;
41+ const packageJson = JSON . parse ( packageJsonContent ) ;
42+ const solvedJson = this . resolveOverwritten ( config . envMap ) ;
43+ const completedJson = this . constructor . getMergedData ( packageJson , solvedJson ) ;
4444
4545 file . setSourcePath ( pathSource )
4646 . setOutputPath ( pathOutput )
@@ -61,11 +61,11 @@ module.exports = class Processor {
6161 }
6262
6363 resolveOverwritten ( envMapping ) {
64- let object = { } ;
64+ const object = { } ;
6565
66- for ( let abstractPath of Object . keys ( envMapping ) ) {
67- let envVariable = envMapping [ abstractPath ] ,
68- value = this . constructor . getEnvironmentValue ( envVariable ) ;
66+ for ( const abstractPath of Object . keys ( envMapping ) ) {
67+ const envVariable = envMapping [ abstractPath ] ;
68+ const value = this . constructor . getEnvironmentValue ( envVariable ) ;
6969
7070 overwriteFieldValue ( abstractPath , value , object ) ;
7171 }
0 commit comments