@@ -99,23 +99,15 @@ extension ProgressReporter.FileFormatStyle: FormatStyle {
9999
100100            let  properties  =  reporter. withProperties ( \. self) 
101101
102-             if  let  totalFileCount =  properties. totalFileCount { 
103-                 let  completedFileCount  =  properties. completedFileCount ??  0 
104-                 fileCountLSR =  LocalizedStringResource ( " \( completedFileCount,  format:  IntegerFormatStyle < Int > ( ) )  of  \( totalFileCount,  format:  IntegerFormatStyle < Int > ( ) )  files " ,  locale:  self . locale,  bundle:  . forClass( ProgressReporter . self) ) 
105-             } 
102+             fileCountLSR =  LocalizedStringResource ( " \( properties. completedFileCount,  format:  IntegerFormatStyle < Int > ( ) )  of  \( properties. totalFileCount,  format:  IntegerFormatStyle < Int > ( ) )  files " ,  locale:  self . locale,  bundle:  . forClass( ProgressReporter . self) ) 
106103
107-             if  let  totalByteCount =  properties. totalByteCount { 
108-                 let  completedByteCount  =  properties. completedByteCount ??  0 
109-                 byteCountLSR =  LocalizedStringResource ( " \( completedByteCount,  format:  ByteCountFormatStyle ( ) )  of  \( totalByteCount,  format:  ByteCountFormatStyle ( ) ) " ,  locale:  self . locale,  bundle:  . forClass( ProgressReporter . self) ) 
110-             } 
111104
112-             if  let  throughput =  properties. throughput { 
113-                 throughputLSR =  LocalizedStringResource ( " \( throughput,  format:  ByteCountFormatStyle ( ) ) /s " ,  locale:  self . locale,  bundle:  . forClass( ProgressReporter . self) ) 
114-             } 
105+             byteCountLSR =  LocalizedStringResource ( " \( properties. completedByteCount,  format:  ByteCountFormatStyle ( ) )  of  \( properties. totalByteCount,  format:  ByteCountFormatStyle ( ) ) " ,  locale:  self . locale,  bundle:  . forClass( ProgressReporter . self) ) 
115106
116-             if  let  timeRemaining =  properties. estimatedTimeRemaining { 
117-                 timeRemainingLSR =  LocalizedStringResource ( " \( timeRemaining,  format:  Duration . UnitsFormatStyle ( allowedUnits:  [ . hours,  . minutes] ,  width:  . wide) )  remaining " ,  locale:  self . locale,  bundle:  . forClass( ProgressReporter . self) ) 
118-             } 
107+             
108+             throughputLSR =  LocalizedStringResource ( " \( properties. throughput,  format:  ByteCountFormatStyle ( ) ) /s " ,  locale:  self . locale,  bundle:  . forClass( ProgressReporter . self) ) 
109+             
110+             timeRemainingLSR =  LocalizedStringResource ( " \( properties. estimatedTimeRemaining,  format:  Duration . UnitsFormatStyle ( allowedUnits:  [ . hours,  . minutes] ,  width:  . wide) )  remaining " ,  locale:  self . locale,  bundle:  . forClass( ProgressReporter . self) ) 
119111
120112            return  """ 
121113             \( String ( localized:  fileCountLSR ??  " " ) )   
0 commit comments