Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gilv93 committed Sep 27, 2024
1 parent c453612 commit 9b3cb53
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/recurly/risk/three-d-secure/strategy/cybersource.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class CybersourceStrategy extends ThreeDSecureStrategy {
const body = JSON.parse(data);
if (body.MessageType === 'profile.completed') {
debug('received device data session id', body);
resolve({ results: { session_id: body.SessionId }});
resolve({ results: { session_id: body.SessionId } });
frame.destroy();
recurly.bus.off('raw-message', listener);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/risk/three-d-secure/strategy/worldpay.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class WorldpayStrategy extends ThreeDSecureStrategy {
const body = JSON.parse(data);
if (body.MessageType === 'profile.completed') {
debug('received device data session id', body);
resolve({ results: { session_id: body.SessionId }});
resolve({ results: { session_id: body.SessionId } });
recurly.bus.off('raw-message', listener);
frame.destroy();
}
Expand Down
4 changes: 2 additions & 2 deletions lib/recurly/risk/three-d-secure/three-d-secure.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ export class ThreeDSecure extends RiskConcern {
gateway_code,
results
})
}
};
});
});
}, Promise.resolve({risk: []}));
}, Promise.resolve({ risk: [] }));
}

constructor ({ risk, actionTokenId, challengeWindowSize }) {
Expand Down
4 changes: 2 additions & 2 deletions lib/recurly/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ function token (customerData, bus, done) {
const { number, month, year, cvv } = inputs;
Risk.preflight({ recurly: this, number, month, year, cvv })
.then(({ risk, tokenType }) => {
inputs.risk = risk
if (tokenType) inputs.type = tokenType
inputs.risk = risk;
if (tokenType) inputs.type = tokenType;
})
.then(() => this.request.post({ route: '/token', data: inputs, done: complete }))
.done();
Expand Down

0 comments on commit 9b3cb53

Please sign in to comment.