move var declaration outside debug scope.

This commit is contained in:
Kyle Matthew Hedden 2020-08-31 09:02:08 -04:00
parent 8794cd6ee9
commit eec32c860e

View File

@ -245,9 +245,9 @@
return nil;
}
NSError *jsonError = nil;
#if DEBUG
// Pretty print for logging the request parameters.
NSError *jsonError = nil;
NSData *data = [NSJSONSerialization dataWithJSONObject:parameters options:NSJSONWritingPrettyPrinted error:&jsonError];
if (!data) {
*error = [[MVMCoreErrorObject alloc] initWithTitle:nil message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess] messageToLog:jsonError.localizedDescription code:jsonError.code domain:ErrorDomainSystem location:[NSString stringWithFormat:@"requestWithParameters:pageType_%@:parameters_%@",requestParameters.pageType,parameters.description]];