@@ -150,30 +150,32 @@ async function run() {
150150 : [ ] ) ,
151151 ] ,
152152 ] . 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 ) , "" ) ;
153+ ...[ ...fileMap . entries ( ) ]
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+ }
170172 }
171- }
172173
173- return [ ...table , row ] ;
174- } ,
175- [ ]
176- ) . map ( ( row ) => `| ${ row . join ( " | " ) } |` ) ,
174+ return [ ...table , row ] ;
175+ } ,
176+ [ ]
177+ )
178+ . map ( ( row ) => `| ${ row . join ( " | " ) } |` ) ,
177179 ) ;
178180
179181 markdown . push ( ...md ) ;
0 commit comments