From 257e7c238f6f3965e96087eec9c48c8376686729 Mon Sep 17 00:00:00 2001 From: Kyle Matthew Hedden Date: Tue, 1 Sep 2020 08:59:47 -0400 Subject: [PATCH] shift var outside debug block --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m index efb3f83..0392904 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m @@ -248,9 +248,10 @@ } NSError *jsonError = nil; + NSData *data = nil; #if DEBUG // Pretty print for logging the request parameters. - NSData *data = [NSJSONSerialization dataWithJSONObject:parameters options:NSJSONWritingPrettyPrinted error:&jsonError]; + data = [NSJSONSerialization dataWithJSONObject:parameters options:NSJSONWritingPrettyPrinted error:&jsonError]; if (!data) { if (error) { *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]];