File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ const formatResults = ({ results, thresholds }) => {
101101 . map ( ( { title, score } ) => `${ title } : ${ score * 100 } ` )
102102 . join ( ', ' ) ;
103103
104- const report = minify ( results . report , {
104+ const formattedReport = makeReplacements ( results . report ) ;
105+
106+ const report = minify ( formattedReport , {
105107 removeAttributeQuotes : true ,
106108 collapseWhitespace : true ,
107109 removeRedundantAttributes : true ,
@@ -272,11 +274,8 @@ module.exports = {
272274 console . log ( { results : summary } ) ;
273275 }
274276
275- let formattedReport ;
276277 if ( report ) {
277- formattedReport = makeReplacements ( report ) ;
278-
279- const size = Buffer . byteLength ( JSON . stringify ( formattedReport ) ) ;
278+ const size = Buffer . byteLength ( JSON . stringify ( report ) ) ;
280279 console . log (
281280 `Report collected: audited_uri: '${ chalk . magenta (
282281 url || path ,
@@ -292,7 +291,7 @@ module.exports = {
292291 url,
293292 summary,
294293 shortSummary,
295- report : formattedReport ,
294+ report,
296295 } ) ;
297296 }
298297 }
You can’t perform that action at this time.
0 commit comments