소스 검색

clear code

Marino Faggiana 8 년 전
부모
커밋
ec52e459e8
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      iOSClient/Main/CCMain.m

+ 3 - 4
iOSClient/Main/CCMain.m

@@ -5043,13 +5043,12 @@
     
     tableMetadata *metadata = [self getMetadataFromSectionDataSource:indexPath];
     
-    if (!metadata || [[NCManageDatabase sharedInstance] isTableInvalidated:metadata]) {
-        return [tableView dequeueReusableCellWithIdentifier:@"CellMainTransfer"];
-    }
+    if (!metadata || [[NCManageDatabase sharedInstance] isTableInvalidated:metadata])
+        return [tableView dequeueReusableCellWithIdentifier:@"CellMain"];
     
     NSString *serverUrl = [[NCManageDatabase sharedInstance] getServerUrl:metadata.directoryID];
     if (!serverUrl)
-        return [tableView dequeueReusableCellWithIdentifier:@"CellMainTransfer"];
+        return [tableView dequeueReusableCellWithIdentifier:@"CellMain"];
     
     if ([metadata.session isEqualToString:@""] || metadata.session == nil) typeCell = @"CellMain";
     else typeCell = @"CellMainTransfer";