File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ async function filterDeps () {
5757 }
5858
5959 if ( builtData . length > 0 ) {
60- await writeBatchToFiles ( builtData )
60+ writeBatchToFiles ( builtData )
6161 }
6262
6363 const unprocessedItems = rawDeps . all_public_dependent_repos . filter ( ( _ , index ) => ! processedIndexes . includes ( index ) )
6464
65- await appendFileSync (
65+ appendFileSync (
6666 `data/${ yyyymmdd } -${ timestamp } -unprocessedItems.json` ,
6767 JSON . stringify ( unprocessedItems , null , 2 )
6868 )
@@ -119,15 +119,15 @@ export async function analyseRepo (repo) {
119119 return result . getResult ( repoData )
120120}
121121
122- async function writeBatchToFiles ( builtData ) {
122+ function writeBatchToFiles ( builtData ) {
123123 // Write JSON file
124- await appendFileSync (
124+ appendFileSync (
125125 `data/${ yyyymmdd } -${ timestamp } -filtered-data.json` ,
126126 JSON . stringify ( builtData , null , 2 )
127127 )
128128 // Write CSV file
129129 const csv = json2csv ( builtData )
130- await appendFileSync ( `data/${ yyyymmdd } -${ timestamp } -filtered-data.csv` , csv )
130+ appendFileSync ( `data/${ yyyymmdd } -${ timestamp } -filtered-data.csv` , csv )
131131 console . log ( 'Data file updated with batch of entries' )
132132}
133133
You can’t perform that action at this time.
0 commit comments