Explorar o código

DownloadViewController: Cosmetic: Fix extra spaces

Edgar Fouillet %!s(int64=5) %!d(string=hai) anos
pai
achega
389e789daa
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Sources/VLCDownloadViewController.m

+ 3 - 3
Sources/VLCDownloadViewController.m

@@ -348,9 +348,8 @@ typedef NS_ENUM(NSUInteger, VLCDownloadScheme) {
         [self.progressPercent setText:[NSString stringWithFormat:@"%.1f%%", percentage*100]];
         [self.timeDL setText:[self calculateRemainingTime:receivedDataSize expectedDownloadSize:expectedDownloadSize]];
         [self.speedRate setText:[self calculateSpeedString:receivedDataSize]];
-            _lastStatsUpdate = [NSDate timeIntervalSinceReferenceDate];
+        _lastStatsUpdate = [NSDate timeIntervalSinceReferenceDate];
     }
-
     [self.progressView setProgress:percentage animated:YES];
 }
 
@@ -373,7 +372,8 @@ typedef NS_ENUM(NSUInteger, VLCDownloadScheme) {
 - (NSString*)calculateSpeedString:(CGFloat)receivedDataSize
 {
     CGFloat speed = receivedDataSize / ([NSDate timeIntervalSinceReferenceDate] - _startDL);
-    NSString *string = [NSByteCountFormatter stringFromByteCount:speed countStyle:NSByteCountFormatterCountStyleDecimal];
+    NSString *string = [NSByteCountFormatter stringFromByteCount:speed
+                                                      countStyle:NSByteCountFormatterCountStyleDecimal];
     string = [string stringByAppendingString:@"/s"];
     return string;
 }