@@ -56,7 +56,7 @@ export function engine(config: any = {engine: 'V8'}) {
5656 return doReplacement ( file , config , data ) ;
5757 } else {
5858 chat ( 'Open async: ' + file ) ;
59- fs . readFile ( file , config . encoding , function ( err , data ) {
59+ fs . readFile ( file , config . encoding , function ( err , data ) {
6060 if ( err ) {
6161 return error ( err ) ;
6262 }
@@ -101,7 +101,7 @@ export function engine(config: any = {engine: 'V8'}) {
101101
102102 // Write directly to the same file (if the process is killed all new and old data is lost)
103103 if ( _config_rr . voidBackup ) {
104- return fs . writeFile ( _file_rr , result , _config_rr . encoding , function ( err ) {
104+ return fs . writeFile ( _file_rr , result , _config_rr . encoding , function ( err ) {
105105 if ( err ) {
106106 return error ( err ) ;
107107 }
@@ -111,10 +111,7 @@ export function engine(config: any = {engine: 'V8'}) {
111111
112112 //Make sure data is always on disk
113113 const oriFile = path . normalize ( path . join ( process . cwd ( ) , _file_rr ) ) ;
114- const salt = new Date ( )
115- . toISOString ( )
116- . replace ( / : / g, '_' )
117- . replace ( 'Z' , '' ) ;
114+ const salt = new Date ( ) . toISOString ( ) . replace ( / : / g, '_' ) . replace ( 'Z' , '' ) ;
118115 const backupFile = oriFile + '.' + salt + '.backup' ;
119116
120117 if ( _config_rr . voidAsync ) {
@@ -210,7 +207,7 @@ export function engine(config: any = {engine: 'V8'}) {
210207 return die ( 'outputMatch is only supported in node 6+' ) ;
211208 }
212209
213- return function ( ) {
210+ return function ( ) {
214211 step ( arguments ) ;
215212
216213 if ( arguments . length === 3 ) {
@@ -499,7 +496,7 @@ function dynamicReplacement(_file_rr, _config_rr, _data_rr) {
499496 ) ;
500497 }
501498 // Captures groups present, so need to run once per match
502- return function ( ) {
499+ return function ( ) {
503500 step ( arguments ) ;
504501
505502 const __pipe = _pipe ,
0 commit comments