Skip to content

Commit 4ec2dfa

Browse files
author
Michele Longhi
committed
Code cleanup
1 parent fa59b25 commit 4ec2dfa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

CloudBoost/CloudObject.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,7 @@ public class CloudObject: NSObject {
921921

922922
var objectClass: CloudObject.Type
923923

924-
if let type = type {
925-
objectClass = type
926-
} else {
927-
objectClass = CloudApp.objectClassForTableName(tableName)
928-
}
924+
objectClass = CloudApp.objectClassForTableName(tableName)
929925

930926
let object = objectClass.init(tableName: tableName)
931927
object.document = NSMutableDictionary(dictionary: dictionary as [NSObject : AnyObject], copyItems: true)

0 commit comments

Comments
 (0)