File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
extensions/ql-vscode/src/remote-queries Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,8 @@ export function processVariantAnalysis(
60
60
function processScannedRepositories (
61
61
scannedRepos : ApiVariantAnalysisScannedRepository [ ]
62
62
) : VariantAnalysisScannedRepository [ ] {
63
-
64
- const result : VariantAnalysisScannedRepository [ ] = [ ] ;
65
-
66
- scannedRepos . forEach ( function ( scannedRepo ) {
67
- const parsedRepo : VariantAnalysisScannedRepository = {
63
+ return scannedRepos . map ( scannedRepo => {
64
+ return {
68
65
repository : {
69
66
id : scannedRepo . repository . id ,
70
67
fullName : scannedRepo . repository . full_name ,
@@ -75,11 +72,7 @@ function processScannedRepositories(
75
72
artifactSizeInBytes : scannedRepo . artifact_size_in_bytes ,
76
73
failureMessage : scannedRepo . failure_message
77
74
} ;
78
-
79
- result . push ( parsedRepo ) ;
80
75
} ) ;
81
-
82
- return result ;
83
76
}
84
77
85
78
function processSkippedRepositories (
@@ -154,4 +147,4 @@ export function processFailureReason(failureReason: ApiVariantAnalysisFailureRea
154
147
case 'internal_error' :
155
148
return VariantAnalysisFailureReason . InternalError ;
156
149
}
157
- }
150
+ }
You can’t perform that action at this time.
0 commit comments