mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Removed odd self=nil assignments
This commit is contained in:
1 parent
c9a631d2e4
commit
19c3d2ebf3
1 file changed
+5
-4
Vendored
+5
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user