Skip to content

Commit 29e8e7d

Browse files
committed
refactor(Native): rename getReactDelegate to resolveReactDelegate for clarity
1 parent 2e07089 commit 29e8e7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void run() {
162162
// reload method introduced in RN 0.74 (https://github.com/reactwg/react-native-new-architecture/discussions/174)
163163
// so, we need to check if reload method exists and call it
164164
try {
165-
ReactDelegate reactDelegate = CodePushNativeModule.this.getReactDelegate();
165+
ReactDelegate reactDelegate = CodePushNativeModule.this.resolveReactDelegate();
166166
if (reactDelegate == null) {
167167
throw new NoSuchMethodException("ReactDelegate doesn't have reload method in RN < 0.74");
168168
}
@@ -211,7 +211,7 @@ private void clearLifecycleEventListener() {
211211
}
212212
}
213213

214-
private ReactDelegate getReactDelegate() {
214+
private ReactDelegate resolveReactDelegate() {
215215
ReactActivity currentActivity = (ReactActivity) getCurrentActivity();
216216
if (currentActivity == null) {
217217
return null;
@@ -517,7 +517,7 @@ protected Void doInBackground(Void... params) {
517517
return null;
518518
}
519519
}
520-
520+
521521
promise.resolve("");
522522
} catch(CodePushUnknownException e) {
523523
CodePushUtils.log(e);

0 commit comments

Comments
 (0)