Skip to content

Commit

Permalink
remove uneccessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRidh committed Aug 7, 2024
1 parent 8d883b5 commit fa1b48e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1005,11 +1005,7 @@ private TaskResult invokeMethod() {
String organizationCode = call.argument("organizationCode");
String userId = call.argument("userId");

CreateCreditCard req = new CreateCreditCard(userId, token, organizationCode);

if(isCardholderNameSpecified != null){
req.isCardholderNameSpecified(isCardholderNameSpecified);
}
CreateCreditCard req = new CreateCreditCard(userId, token, organizationCode).isCardholderNameSpecified(isCardholderNameSpecified);

Pokepay.setEnv(env);
CreditCard res = req.send(accessToken);
Expand Down

0 comments on commit fa1b48e

Please sign in to comment.