code review

This commit is contained in:
Suresh, Kamlesh 2021-01-21 13:27:25 -05:00
parent 4e1e563284
commit b00e9c4895
2 changed files with 3 additions and 3 deletions

View File

@ -158,4 +158,6 @@ extern NSString * _Nonnull const KeyActionTypeOpen;
// By default, throws an error, calling defaultHandleActionError.
+ (void)defaultHandleUnknownActionType:(nullable NSString *)actionType actionInformation:(nullable NSDictionary *)actionInformation additionalData:(nullable NSDictionary *)additionalData delegate:(nullable NSObject <MVMCoreActionDelegateProtocol>*)delegate __deprecated;
// Iterates through the clientParameters list. Gets values from the individual handlers and attaches the parameters to extraParameters.
- (void)setClientParameter:(nullable NSDictionary *)actionInformation completionHandler:(nonnull void (^)(NSDictionary * _Nullable jsonDictionary))completionHandler;
@end

View File

@ -566,7 +566,6 @@ NSString * const KeyActionTypeOpen = @"openPage";
[self setClientParameter:actionInformation completionHandler:performAction];
}
/// Iterates through the clientParameters list. Gets values from the individual handlers and attaches the parameters to extraParameters.
- (void)setClientParameter:(nullable NSDictionary *)actionInformation completionHandler:(nonnull void (^)(NSDictionary * _Nullable jsonDictionary))completionHandler {
NSDictionary *clientParametersMap = [actionInformation dict:KeyClientParameters];
@ -611,8 +610,7 @@ NSString * const KeyActionTypeOpen = @"openPage";
if (error) {
stopLoadingOverlay();
completionHandler(actionInformation);
[MVMCoreLoggingHandler logDebugMessageWithDelegate:@"Error clientparameters"];
[MVMCoreLoggingHandler logDebugMessageWithDelegate:error.debugDescription];
[MVMCoreLoggingHandler addErrorToLog:error];
}
}