code review
This commit is contained in:
parent
09cf4db857
commit
0091c419d1
@ -10,7 +10,7 @@ import Foundation
|
||||
|
||||
public extension MVMCoreActionHandler {
|
||||
|
||||
/// Iterates throw the clientParameters list. Gets values from the individul handlers and attaches the paramters to extraParameters.
|
||||
/// Iterates threw the clientParameters list. Gets values from the individual handlers and attaches the parameters to extraParameters.
|
||||
@objc func setClientParameter(with actionMap: [String: Any]?, completionHandler: @escaping ([String : Any]?) -> ()) {
|
||||
|
||||
guard let clientParameters = actionMap?.optionalDictionaryForKey("clientParameters") else {
|
||||
@ -38,7 +38,7 @@ public extension MVMCoreActionHandler {
|
||||
return
|
||||
}
|
||||
|
||||
var extraParams: [String : Any] = actionMap?.optionalDictionaryForKey(KeyExtraParameters) ?? [:]
|
||||
var extraParams: [String : Any] = actionMap?.dictionaryForKey(KeyExtraParameters)
|
||||
extraParams.merge(clientParams) { (_, new) in new }
|
||||
var actionMapM = actionMap
|
||||
actionMapM?[KeyExtraParameters] = extraParams
|
||||
|
||||
Loading…
Reference in New Issue
Block a user