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

Commit 45c4e74

Browse files
committed
feedback
1 parent 482be15 commit 45c4e74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CodePush.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ async function sync(options = {}, syncStatusChangeCallback, downloadProgressCall
187187
await CodePush.notifyApplicationReady();
188188

189189
syncStatusChangeCallback(CodePush.SyncStatus.CHECKING_FOR_UPDATE);
190-
let remotePackage = await checkForUpdate(syncOptions.deploymentKey);
190+
const remotePackage = await checkForUpdate(syncOptions.deploymentKey);
191191

192-
let doDownloadAndInstall = async () => {
192+
const doDownloadAndInstall = async () => {
193193
syncStatusChangeCallback(CodePush.SyncStatus.DOWNLOADING_PACKAGE);
194194
let localPackage = await remotePackage.download(downloadProgressCallback);
195195

request-fetch-adapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let request = async (verb, url, body, callback) => {
2121
});
2222

2323
const statusCode = response.status;
24-
let body = await response.text();
24+
const body = await response.text();
2525
callback(null, { statusCode, body });
2626
} catch (err) {
2727
callback(err);

0 commit comments

Comments
 (0)