Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 20fd5be

Browse files
committed
rename var
1 parent cb0dcc4 commit 20fd5be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CodePush.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#import "CodePush.h"
88

99
@implementation CodePush {
10-
BOOL hasRestartListener;
10+
BOOL _hasResumeListener;
1111
}
1212

1313
RCT_EXPORT_MODULE()
@@ -338,14 +338,14 @@ - (void)startRollbackTimer:(int)rollbackTimeout
338338
[self loadBundle];
339339
} else if (installMode == CodePushInstallModeOnNextResume) {
340340
// Ensure we do not add the listener twice.
341-
if (!hasRestartListener) {
341+
if (!_hasResumeListener) {
342342
// Register for app resume notifications so that we
343343
// can check for pending updates which support "restart on resume"
344344
[[NSNotificationCenter defaultCenter] addObserver:self
345345
selector:@selector(loadBundle)
346346
name:UIApplicationWillEnterForegroundNotification
347347
object:[UIApplication sharedApplication]];
348-
hasRestartListener = true;
348+
_hasResumeListener = true;
349349
}
350350
}
351351
// Signal to JS that the update has been applied.

0 commit comments

Comments
 (0)