From 8200dbc4e7273c57af657ed2e67f08b5bf665f72 Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Fri, 12 Oct 2018 12:53:58 -0700 Subject: [PATCH] Fix typo in 'downloadProgressCallbackkWithTryCatch' (#1428) --- CodePush.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CodePush.js b/CodePush.js index 645d4e6..99722d6 100644 --- a/CodePush.js +++ b/CodePush.js @@ -241,7 +241,7 @@ const sync = (() => { const setSyncCompleted = () => { syncInProgress = false; }; return (options = {}, syncStatusChangeCallback, downloadProgressCallback, handleBinaryVersionMismatchCallback) => { - let syncStatusCallbackWithTryCatch, downloadProgressCallbackkWithTryCatch; + let syncStatusCallbackWithTryCatch, downloadProgressCallbackWithTryCatch; if (typeof syncStatusChangeCallback === "function") { syncStatusCallbackWithTryCatch = (...args) => { try { @@ -253,7 +253,7 @@ const sync = (() => { } if (typeof downloadProgressCallback === "function") { - downloadProgressCallbackkWithTryCatch = (...args) => { + downloadProgressCallbackWithTryCatch = (...args) => { try { downloadProgressCallback(...args); } catch (error) { @@ -270,7 +270,7 @@ const sync = (() => { } syncInProgress = true; - const syncPromise = syncInternal(options, syncStatusCallbackWithTryCatch, downloadProgressCallbackkWithTryCatch, handleBinaryVersionMismatchCallback); + const syncPromise = syncInternal(options, syncStatusCallbackWithTryCatch, downloadProgressCallbackWithTryCatch, handleBinaryVersionMismatchCallback); syncPromise .then(setSyncCompleted) .catch(setSyncCompleted);