mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
make use of Obj-C's modern syntax for literals and subscripting
This commit is contained in:
@@ -1292,11 +1292,11 @@
|
||||
// Retrieve the site key
|
||||
NSString *siteKey;
|
||||
|
||||
id recaptchaParams = [currentSession.params objectForKey:kMXLoginFlowTypeRecaptcha];
|
||||
id recaptchaParams = currentSession.params[kMXLoginFlowTypeRecaptcha];
|
||||
if (recaptchaParams && [recaptchaParams isKindOfClass:NSDictionary.class])
|
||||
{
|
||||
NSDictionary *recaptchaParamsDict = (NSDictionary*)recaptchaParams;
|
||||
siteKey = [recaptchaParamsDict objectForKey:@"public_key"];
|
||||
siteKey = recaptchaParamsDict[@"public_key"];
|
||||
}
|
||||
|
||||
// Retrieve the REST client from delegate
|
||||
|
||||
Reference in New Issue
Block a user