File tree Expand file tree Collapse file tree
test-app/build-tools/jsparser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66///////////////// CONFIGURATION /////////////////
77
88const enableLogger = ( process . env . AST_PARSER_ENABLE_LOGGING && process . env . AST_PARSER_ENABLE_LOGGING . trim ( ) === "true" )
9- || ( process . argv && process . argv . includes ( "enableVerboseLogging" ) ) ;
9+ || ( process . argv && process . argv . includes ( "enableVerboseLogging" ) ) ;
1010
1111loggingSettings = {
1212 "logPath" : require ( "path" ) . join ( __dirname , "logs" , "i.txt" ) ,
@@ -161,8 +161,8 @@ function traverseFiles(filesToTraverse) {
161161 readFile ( fp )
162162 . then ( astFromFileContent )
163163 . then ( visitAst )
164- . then ( writeToFile )
165- . catch ( exceptionHandler )
164+ . then ( writeToFile )
165+ . catch ( exceptionHandler )
166166 }
167167}
168168
@@ -247,7 +247,7 @@ var visitAst = function (data, err) {
247247
248248var writeToFile = function ( data , err ) {
249249 return new Promise ( function ( resolve , reject ) {
250- if ( data . trim ( ) != "" ) {
250+ if ( data . trim ( ) != "" ) {
251251 // fs.appendFile(outFile, stringify(data), function (writeFileError) {
252252 fs . appendFile ( outFile , data + eol , function ( writeFileError ) {
253253 if ( err ) {
You can’t perform that action at this time.
0 commit comments