@@ -149,33 +149,31 @@ async function run() {
149149 ]
150150 : [ ] ) ,
151151 ] ,
152- ...fileMap . entries ( ) ,
153- ]
154- . reduce (
155- (
156- table ,
157- [ readableFilename , { byteSize = 0 , diffByteSize = 0 } ]
158- ) => {
159- // @todo readable filename can be linked to html diff of the file?
160- // https://github.com/adobe/spectrum-css/pull/2093/files#diff-6badd53e481452b5af234953767029ef2e364427dd84cdeed25f5778b6fca2e6
161- const row = [
162- readableFilename ,
163- byteSize === 0 ? "**removed**" : bytesToSize ( byteSize ) ,
164- diffByteSize === 0 ? "" : bytesToSize ( diffByteSize ) ,
165- ] ;
166-
167- if ( hasDiff && diffByteSize > 0 ) {
168- if ( byteSize === 0 ) row . push ( "" , "" ) ;
169- else {
170- row . push ( printChange ( diffByteSize - byteSize ) , "" ) ;
171- }
152+ ] . map ( ( row ) => `| ${ row . join ( " | " ) } |` ) ,
153+ ...fileMap . entries ( ) . reduce (
154+ (
155+ table ,
156+ [ readableFilename , { byteSize = 0 , diffByteSize = 0 } ]
157+ ) => {
158+ // @todo readable filename can be linked to html diff of the file?
159+ // https://github.com/adobe/spectrum-css/pull/2093/files#diff-6badd53e481452b5af234953767029ef2e364427dd84cdeed25f5778b6fca2e6
160+ const row = [
161+ readableFilename ,
162+ byteSize === 0 ? "**removed**" : bytesToSize ( byteSize ) ,
163+ diffByteSize === 0 ? "" : bytesToSize ( diffByteSize ) ,
164+ ] ;
165+
166+ if ( hasDiff && diffByteSize > 0 ) {
167+ if ( byteSize === 0 ) row . push ( "" , "" ) ;
168+ else {
169+ row . push ( printChange ( diffByteSize - byteSize ) , "" ) ;
172170 }
171+ }
173172
174- return [ ...table , row ] ;
175- } ,
176- [ ]
177- )
178- . map ( ( row ) => `| ${ row . join ( " | " ) } |` ) ,
173+ return [ ...table , row ] ;
174+ } ,
175+ [ ]
176+ ) . map ( ( row ) => `| ${ row . join ( " | " ) } |` ) ,
179177 ) ;
180178
181179 markdown . push ( ...md ) ;
0 commit comments