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

Commit 8200dbc

Browse files
ultramiraculousNickToropov
authored andcommitted
Fix typo in 'downloadProgressCallbackkWithTryCatch' (#1428)
1 parent 617949a commit 8200dbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CodePush.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const sync = (() => {
241241
const setSyncCompleted = () => { syncInProgress = false; };
242242

243243
return (options = {}, syncStatusChangeCallback, downloadProgressCallback, handleBinaryVersionMismatchCallback) => {
244-
let syncStatusCallbackWithTryCatch, downloadProgressCallbackkWithTryCatch;
244+
let syncStatusCallbackWithTryCatch, downloadProgressCallbackWithTryCatch;
245245
if (typeof syncStatusChangeCallback === "function") {
246246
syncStatusCallbackWithTryCatch = (...args) => {
247247
try {
@@ -253,7 +253,7 @@ const sync = (() => {
253253
}
254254

255255
if (typeof downloadProgressCallback === "function") {
256-
downloadProgressCallbackkWithTryCatch = (...args) => {
256+
downloadProgressCallbackWithTryCatch = (...args) => {
257257
try {
258258
downloadProgressCallback(...args);
259259
} catch (error) {
@@ -270,7 +270,7 @@ const sync = (() => {
270270
}
271271

272272
syncInProgress = true;
273-
const syncPromise = syncInternal(options, syncStatusCallbackWithTryCatch, downloadProgressCallbackkWithTryCatch, handleBinaryVersionMismatchCallback);
273+
const syncPromise = syncInternal(options, syncStatusCallbackWithTryCatch, downloadProgressCallbackWithTryCatch, handleBinaryVersionMismatchCallback);
274274
syncPromise
275275
.then(setSyncCompleted)
276276
.catch(setSyncCompleted);

0 commit comments

Comments
 (0)