Skip to content

Commit

Permalink
remove unnecessary commas
Browse files Browse the repository at this point in the history
  • Loading branch information
cheedep committed Apr 6, 2018
1 parent 6d518c5 commit 6ee76a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/amazon-cognito-identity-js/src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ 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 = {
headers,
method: 'POST',
mode: 'cors',
cache: 'no-cache',
body: JSON.stringify(params),
body: JSON.stringify(params)
};

let response;
Expand All @@ -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);
})
Expand All @@ -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
Expand All @@ -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'
}
Expand Down

0 comments on commit 6ee76a1

Please sign in to comment.