code review fixes
This commit is contained in:
parent
2af3badb4b
commit
4542e82060
@ -191,9 +191,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)getInitialParametersExcludingSections:(NSSet<NSString *> *_Nullable)excludeSections closure:(nonnull void (^)(NSDictionary *_Nullable parameters))closure {
|
||||
|
||||
}
|
||||
- (void)getInitialParametersExcludingSections:(NSSet<NSString *> *_Nullable)excludeSections closure:(nonnull void (^)(NSDictionary *_Nullable parameters))closure {}
|
||||
|
||||
- (void)getJsonDictionary:(nonnull MVMCoreRequestParameters *)requestParameters closure:(nonnull void (^)(NSDictionary * _Nullable jsonDictionary))closure {
|
||||
NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
|
||||
@ -277,7 +275,9 @@
|
||||
- (void)sendRequest:(nonnull MVMCoreRequestParameters *)requestParameters locationForError:(nonnull NSString *)locationForError requestFinished:(nullable void (^)(id _Nullable jsonObject, MVMCoreErrorObject *_Nullable error))requestFinished {
|
||||
[self transformToRequestWithParameters:requestParameters closure:^(NSURLRequest * _Nullable request, MVMCoreErrorObject * _Nullable error) {
|
||||
if (error) {
|
||||
requestFinished(nil, error);
|
||||
if (requestFinished) {
|
||||
requestFinished(nil, error);
|
||||
}
|
||||
return;
|
||||
}
|
||||
[self sendRequest:request requestParameters:requestParameters locationForError:locationForError requestFinished:requestFinished];
|
||||
@ -301,7 +301,9 @@
|
||||
#warning Hotfix for when session is nil. We should switch to logging these errors once we fix how session handler misses canceling certain calls because they happen at the same time.
|
||||
MVMCoreErrorObject *error = [[MVMCoreErrorObject alloc] initWithTitle:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle] message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorCritical] messageToLog:nil code:ErrorCodeDefault domain:ErrorDomainNative location:locationForError];
|
||||
error.logError = NO;
|
||||
requestFinished(nil,error);
|
||||
if (requestFinished) {
|
||||
requestFinished(nil, error);
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user