This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
android/app/src/main/java/com/microsoft/codepush/react Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ protected Void doInBackground(Void... params) {
321
321
JSONObject currentPackage = mUpdateManager .getCurrentPackage ();
322
322
323
323
if (currentPackage == null ) {
324
- promise .resolve ("" );
324
+ promise .resolve (null );
325
325
return null ;
326
326
}
327
327
@@ -335,14 +335,14 @@ protected Void doInBackground(Void... params) {
335
335
if (updateState == CodePushUpdateState .PENDING .getValue () && !currentUpdateIsPending ) {
336
336
// The caller wanted a pending update
337
337
// but there isn't currently one.
338
- promise .resolve ("" );
338
+ promise .resolve (null );
339
339
} else if (updateState == CodePushUpdateState .RUNNING .getValue () && currentUpdateIsPending ) {
340
340
// The caller wants the running update, but the current
341
341
// one is pending, so we need to grab the previous.
342
342
JSONObject previousPackage = mUpdateManager .getPreviousPackage ();
343
343
344
344
if (previousPackage == null ) {
345
- promise .resolve ("" );
345
+ promise .resolve (null );
346
346
return null ;
347
347
}
348
348
You can’t perform that action at this time.
0 commit comments