diff options
author | Stuart Connolly <stuart02@gmail.com> | 2013-11-27 13:02:32 +0000 |
---|---|---|
committer | Stuart Connolly <stuart02@gmail.com> | 2013-11-27 13:02:32 +0000 |
commit | 498de45c6f75364e0dc1021d9484eaf6cc679db1 (patch) | |
tree | e57a54d8e427a124f52358b81e8f11f19d3d3655 /Source | |
parent | 51213783cb9d4b20902e5520524f594b9a084e66 (diff) | |
download | sequelpro-498de45c6f75364e0dc1021d9484eaf6cc679db1.tar.gz sequelpro-498de45c6f75364e0dc1021d9484eaf6cc679db1.tar.bz2 sequelpro-498de45c6f75364e0dc1021d9484eaf6cc679db1.zip |
Remove use of intermediate var.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPKeychain.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/SPKeychain.m b/Source/SPKeychain.m index c7b3731d..f7580f65 100644 --- a/Source/SPKeychain.m +++ b/Source/SPKeychain.m @@ -224,9 +224,7 @@ CFDictionaryRef result = NULL; - BOOL found = SecItemCopyMatching((CFDictionaryRef)query, (CFTypeRef *)&result) == errSecSuccess; - - return found; + return SecItemCopyMatching((CFDictionaryRef)query, (CFTypeRef *)&result) == errSecSuccess; } /** @@ -260,7 +258,7 @@ if (status != noErr) { NSLog(@"Error (%i) while trying to find keychain item to edit for name: %@ account: %@", (int)status, name, account); - + SPBeginAlertSheet(NSLocalizedString(@"Error retrieving Keychain item to edit", @"error finding keychain item to edit message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [NSApp mainWindow], self, nil, nil, |