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

Commit 834bb51

Browse files
committed
renamed function
1 parent b15a13b commit 834bb51

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

CodePush.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,15 @@ - (instancetype)init
113113
self = [super init];
114114

115115
if (self) {
116-
// Do an async check to see whether
117-
// we need to start the rollback timer
116+
// Do a check to see whether we need to start the rollback timer
118117
// due to a pending update being installed at start
119-
[self handleInitIfPendingUpdate];
118+
[self initializeUpdateAfterRestart];
120119
}
121120

122121
return self;
123122
}
124123

125-
126-
- (void)handleInitIfPendingUpdate
124+
- (void)initializeUpdateAfterRestart
127125
{
128126
NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults];
129127
NSDictionary *pendingUpdate = [preferences objectForKey:PendingUpdateKey];

android/app/src/main/java/com/microsoft/codepush/react/CodePush.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public CodePush(String deploymentKey, Activity mainActivity) {
8787
throw new CodePushUnknownException("Unable to get package info for " + applicationContext.getPackageName(), e);
8888
}
8989

90-
handleInitIfPendingUpdate();
90+
initializeUpdateAfterRestart();
9191
}
9292

9393
public ReactPackage getReactPackage() {
@@ -231,7 +231,7 @@ public void run() {
231231
}, timeout);
232232
}
233233

234-
private void handleInitIfPendingUpdate() {
234+
private void initializeUpdateAfterRestart() {
235235
SharedPreferences settings = applicationContext.getSharedPreferences(CODE_PUSH_PREFERENCES, 0);
236236
String pendingUpdateString = settings.getString(PENDING_UPDATE_KEY, null);
237237

0 commit comments

Comments
 (0)