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

Commit 482be15

Browse files
committed
feedback
1 parent df02e01 commit 482be15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodePush.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ async function sync(options = {}, syncStatusChangeCallback, downloadProgressCall
201201
return CodePush.SyncStatus.UPDATE_INSTALLED;
202202
};
203203

204-
if (!remotePackage || remotePackage.failedInstall && syncOptions.ignoreFailedUpdates) {
204+
if (!remotePackage || (remotePackage.failedInstall && syncOptions.ignoreFailedUpdates)) {
205205
syncStatusChangeCallback(CodePush.SyncStatus.UP_TO_DATE);
206-
return (CodePush.SyncStatus.UP_TO_DATE);
206+
return CodePush.SyncStatus.UP_TO_DATE;
207207
} else if (syncOptions.updateDialog) {
208208
// updateDialog supports any truthy value (e.g. true, "goo", 12),
209209
// but we should treat a non-object value as just the default dialog

0 commit comments

Comments
 (0)