Skip to content

Commit 378a720

Browse files
committed
Merge pull request #158 from tomhoag/issue156
Issue156: Fixed NSAsserts to catch the right condition. (Removed the ba...
2 parents 9dd5a3f + 395200d commit 378a720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/OAuth2Client/NXOAuth2AccountStore.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ - (void)setClientID:(NSString *)aClientID
252252
keyChainGroup:(NSString *)aKeyChainGroup
253253
forAccountType:(NSString *)anAccountType;
254254
{
255-
NSAssert(!aKeyChainGroup, @"keyChainGroup must be non-nil");
255+
NSAssert(aKeyChainGroup, @"keyChainGroup must be non-nil");
256256

257257
[self setConfiguration:[NSDictionary dictionaryWithObjectsAndKeys:
258258
aClientID, kNXOAuth2AccountStoreConfigurationClientID,
@@ -275,8 +275,8 @@ - (void)setClientID:(NSString *)aClientID
275275
tokenType:(NSString *)aTokenType
276276
forAccountType:(NSString *)anAccountType;
277277
{
278-
NSAssert(!aKeyChainGroup, @"keyChainGroup must be non-nil");
279-
NSAssert(!aTokenType, @"tokenType must be non-nil");
278+
NSAssert(aKeyChainGroup, @"keyChainGroup must be non-nil");
279+
NSAssert(aTokenType, @"tokenType must be non-nil");
280280

281281
[self setConfiguration:[NSDictionary dictionaryWithObjectsAndKeys:
282282
aClientID, kNXOAuth2AccountStoreConfigurationClientID,

0 commit comments

Comments
 (0)