Browse Source

OneDrive: micro-optimization

Felix Paul Kühne 10 years ago
parent
commit
7cb22d721a
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Sources/VLCCloudStorageTableViewCell.m

+ 4 - 3
Sources/VLCCloudStorageTableViewCell.m

@@ -173,9 +173,10 @@
                 self.thumbnailView.image = [UIImage imageNamed:@"audio"];
             else if (self.oneDriveFile.isVideo) {
                 self.thumbnailView.image = [UIImage imageNamed:@"movie"];
-                if (_oneDriveFile.thumbnailURL != nil) {
-                    if (_oneDriveFile.thumbnailURL.length > 0) {
-                        _iconURL = [NSURL URLWithString:_oneDriveFile.thumbnailURL];
+                NSString *thumbnailURL = _oneDriveFile.thumbnailURL;
+                if (thumbnailURL != NULL) {
+                    if (thumbnailURL.length > 0) {
+                        _iconURL = [NSURL URLWithString:thumbnailURL];
                         [self performSelectorInBackground:@selector(_updateIconFromURL) withObject:@""];
                     }
                 }