@@ -134,13 +134,12 @@ final class Execute {
134134 filehandler: @escaping ( Int ) -> Void ,
135135 updateconfigurations: @escaping ( [ SynchronizeConfiguration ] ) -> Void )
136136 {
137-
138137 structprofile = profile
139138 localconfigurations = configurations
140139 localprogressdetails = progressdetails
141140 localfilehandler = filehandler
142141 localupdateconfigurations = updateconfigurations
143-
142+
144143 guard selecteduuids. count > 0 else { return }
145144 let taskstosynchronize = localconfigurations. filter {
146145 selecteduuids. contains ( $0. id) && $0. task != SharedReference . shared. halted
@@ -149,7 +148,6 @@ final class Execute {
149148 guard stackoftasks? . count ?? 0 > 0 else { return }
150149 Logger . process. debugmessageonly ( " Execute: START EXECUTION " )
151150 startexecution ( )
152-
153151 }
154152
155153 @discardableResult
@@ -177,7 +175,6 @@ final class Execute {
177175}
178176
179177extension Execute {
180-
181178 private func processtermination( stringoutputfromrsync: [ String ] ? , _ hiddenID: Int ? ) {
182179 guard setabort == false else { return }
183180 // Log records
@@ -187,11 +184,11 @@ extension Execute {
187184 // Prepareoutput prepares output from rsync for extracting the numbers only.
188185 // It removes all lines except the last 20 lines where summarized numbers are put
189186 let preparedoutputfromrsync = PrepareOutputFromRsync ( ) . prepareOutputFromRsync ( stringoutputfromrsync)
190-
187+
191188 if SharedReference . shared. addsummarylogrecord {
192189 do {
193190 let stats = try ParseRsyncOutput ( preparedoutputfromrsync,
194- SharedReference . shared. rsyncversion3 ? . ver3 : . openrsync) . getstats ( )
191+ SharedReference . shared. rsyncversion3 ? . ver3 : . openrsync) . getstats ( )
195192 if let logData = ( hiddenID ?? - 1 , stats) as? Typelogdata {
196193 schedulerecords. append ( logData)
197194 }
@@ -205,14 +202,14 @@ extension Execute {
205202 Logger . process. debugmessageonly ( " Execute: getstats() FAILED " )
206203 }
207204 }
208-
205+
209206 guard stackoftasks? . count ?? 0 > 0 else {
210207 let update = Logging ( profile: structprofile,
211208 configurations: localconfigurations)
212209 let updateconfigurations = update. setCurrentDateonConfiguration ( configrecords: configrecords)
213210 // Send date stamped configurations back to caller
214211 localupdateconfigurations ( updateconfigurations)
215-
212+
216213 Logger . process. debugmessageonly ( " Execute: EXECUTION is completed " )
217214 guard SharedReference . shared. addsummarylogrecord else { return }
218215 // Update logrecords
@@ -246,7 +243,7 @@ extension Execute {
246243 localnoestprogressdetails? . appenduuidwithdatatosynchronize ( config. id)
247244 }
248245 }
249-
246+
250247 guard stackoftasks? . count ?? 0 > 0 else {
251248 let update = Logging ( profile: structprofile,
252249 configurations: localconfigurations)
0 commit comments