diff --git a/packages/amazon-cognito-identity-js/src/Client.js b/packages/amazon-cognito-identity-js/src/Client.js index ccfcec27ccf..ddf07c83bc0 100644 --- a/packages/amazon-cognito-identity-js/src/Client.js +++ b/packages/amazon-cognito-identity-js/src/Client.js @@ -23,7 +23,7 @@ export default class Client { const headers = { 'Content-Type': 'application/x-amz-json-1.1', 'X-Amz-Target': `AWSCognitoIdentityProviderService.${operation}`, - 'X-Amz-User-Agent': this.userAgent, + 'X-Amz-User-Agent': this.userAgent }; const options = { @@ -31,7 +31,7 @@ export default class Client { method: 'POST', mode: 'cors', cache: 'no-cache', - body: JSON.stringify(params), + body: JSON.stringify(params) }; let response; @@ -58,7 +58,7 @@ export default class Client { const error = { code, name: code, - message: (data.message || data.Message || null), + message: (data.message || data.Message || null) }; return callback(error); }) @@ -73,7 +73,7 @@ export default class Client { code, name: code, statusCode: response.status, - message: (response.status) ? response.status.toString() : null, + message: (response.status) ? response.status.toString() : null }; } catch (ex) { // pass through so it doesn't get swallowed if we can't parse it @@ -83,7 +83,7 @@ export default class Client { error = { code: err.name, name: err.name, - message: err.message, + message: err.message }; // finally case will return 'UnknownError' }