Revision: 27936
http://sourceforge.net/p/bibdesk/svn/27936
Author: hofman
Date: 2022-09-26 16:41:58 +0000 (Mon, 26 Sep 2022)
Log Message:
-----------
remove second check for same condition
Modified Paths:
--------------
trunk/bibdesk/BDSKPasswordController.m
Modified: trunk/bibdesk/BDSKPasswordController.m
===================================================================
--- trunk/bibdesk/BDSKPasswordController.m 2022-09-26 09:45:50 UTC (rev
27935)
+++ trunk/bibdesk/BDSKPasswordController.m 2022-09-26 16:41:58 UTC (rev
27936)
@@ -185,16 +185,13 @@
logError(@"updating", err);
if (err == errSecItemNotFound) {
+ // password not yet on keychain, so add it
[attributes addEntriesFromDictionary:query];
[attributes setObject:(NSString *)kSecAttrProtocolHTTPS
forKey:(NSString *)kSecAttrProtocol];
- if (err == errSecItemNotFound) {
- // password not yet on keychain, so add it
-
- err = SecItemAdd((CFDictionaryRef)attributes, NULL);
-
- logError(@"adding", err);
- }
+ err = SecItemAdd((CFDictionaryRef)attributes, NULL);
+
+ logError(@"adding", err);
}
return (err == errSecSuccess);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit