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

Commit 222f1f6

Browse files
committed
feedback
1 parent 3078277 commit 222f1f6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package-mixins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default (NativeCodePush) => {
2222
// Use the downloaded package info. Native code will save the package info
2323
// so that the client knows what the current package version is.
2424
try {
25-
let downloadedPackage = await NativeCodePush.downloadUpdate(this);
25+
const downloadedPackage = await NativeCodePush.downloadUpdate(this);
2626
return { ...downloadedPackage, ...local };
2727
} finally {
2828
downloadProgressSubscription && downloadProgressSubscription.remove();

request-fetch-adapter.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ let request = async (verb, url, body, callback) => {
1313
body = JSON.stringify(body);
1414
}
1515

16-
try {
17-
var statusCode;
16+
try {
1817
let response = await fetch(url, {
1918
method: verb,
2019
headers: headers,
@@ -23,7 +22,7 @@ let request = async (verb, url, body, callback) => {
2322

2423
let statusCode = response.status;
2524
let body = await response.text();
26-
callback(null, {statusCode: statusCode, body: body});
25+
callback(null, { statusCode, body });
2726
} catch (err) {
2827
callback(err);
2928
}

0 commit comments

Comments
 (0)