File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ const processResults = ({ data, errors }) => {
267
267
module . exports = {
268
268
onPostBuild : async ( { constants, utils, inputs } = { } ) => {
269
269
const { failBuild, show } = getUtils ( { utils } ) ;
270
- let extraInfo = { } ;
270
+ let extraInfo = [ ] ;
271
271
272
272
try {
273
273
const { audits } = getConfiguration ( {
@@ -303,24 +303,23 @@ module.exports = {
303
303
304
304
if ( Array . isArray ( errors ) && errors . length > 0 ) {
305
305
allErrors . push ( { path, url, errors } ) ;
306
- } else {
307
- data . push ( {
308
- path,
309
- url,
310
- summary,
311
- shortSummary,
312
- details,
313
- report,
314
- } ) ;
315
306
}
307
+ data . push ( {
308
+ path,
309
+ url,
310
+ summary,
311
+ shortSummary,
312
+ details,
313
+ report,
314
+ } ) ;
316
315
}
317
316
318
317
const { error, summary, extraData } = processResults ( {
319
318
data,
320
319
errors : allErrors ,
321
320
show,
322
321
} ) ;
323
- extraInfo = extraData ;
322
+ extraInfo . push ( ... extraData ) ;
324
323
325
324
if ( error && Object . keys ( error ) . length !== 0 ) {
326
325
throw error ;
You can’t perform that action at this time.
0 commit comments