From 8dac41b7f092c7ade722561e23a2b5fee9a9b636 Mon Sep 17 00:00:00 2001 From: Tadeu Zagallo Date: Fri, 6 Nov 2015 07:22:47 -0800 Subject: [PATCH] Rename variable to unbreak the build Reviewed By: javache Differential Revision: D2625963 fb-gh-sync-id: 136013d7fa3b8eea322eea4ec45901376c30881d --- React/Base/RCTBatchedBridge.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/React/Base/RCTBatchedBridge.m b/React/Base/RCTBatchedBridge.m index 944c3dfc9..43d71fc51 100644 --- a/React/Base/RCTBatchedBridge.m +++ b/React/Base/RCTBatchedBridge.m @@ -730,8 +730,11 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR dispatch_block_t block = ^{ RCTProfileEndFlowEvent(); - NSString *threadName = RCTCurrentThreadName(); - RCTProfileBeginEvent(0, threadName, nil); + +#if RCT_DEV + NSString *_threadName = RCTCurrentThreadName(); + RCTProfileBeginEvent(0, _threadName, nil); +#endif NSOrderedSet *calls = [buckets objectForKey:queue]; @autoreleasepool {