Removed odd self=nil assignments

This commit is contained in:
Kornel Lesiński committed 2014-07-05 01:05:03 +01:00
1 parent c9a631d2e4
commit 19c3d2ebf3
1 file changed
+5 -4
+5 -4
View File
@@ -38,10 +38,11 @@
- (instancetype)initWithPublicKeyData:(NSData *)data
{
if (!data.length) return (self = nil);
self = [super init];
self = [super init];
if (!self) return nil;
if (!self || !data.length) {
return nil;
}
SecExternalFormat format = kSecFormatOpenSSL;
SecExternalItemType itemType = kSecItemTypePublicKey;
@@ -52,7 +53,7 @@
if (items) {
CFRelease(items);
}
return (self = nil);
return nil;
}
if (format == kSecFormatOpenSSL && itemType == kSecItemTypePublicKey && CFArrayGetCount(items) == 1) {