Run Prettier JS (#6795)

This commit is contained in:
Diamond Lewis
2020-07-13 13:06:52 -05:00
committed by GitHub
parent ebb0727793
commit e6a6354b29
47 changed files with 313 additions and 329 deletions

View File

@@ -32,7 +32,7 @@ function validateWithAppStore(url, receipt) {
headers: {
'Content-Type': 'application/json',
},
}).then(httpResponse => {
}).then((httpResponse) => {
const body = httpResponse.data;
if (body && body.status === 0) {
// No need to pass anything, status is OK
@@ -54,7 +54,7 @@ function getFileForProductIdentifier(productIdentifier, req) {
req.info.clientSDK,
req.info.context
)
.then(function(result) {
.then(function (result) {
const products = result.results;
if (!products || products.length != 1) {
// Error not found or too many
@@ -106,13 +106,13 @@ export class IAPValidationRouter extends PromiseRouter {
() => {
return successCallback();
},
error => {
(error) => {
if (error.status == 21007) {
return validateWithAppStore(IAP_SANDBOX_URL, receipt).then(
() => {
return successCallback();
},
error => {
(error) => {
return errorCallback(error);
}
);