Skip to content

Commit b4215d7

Browse files
committed
refactor: use PaymentGateway.STRIPE_AVAILABLE in StripeAvailableCondition
1 parent 4780e1f commit b4215d7

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

cdi-api/src/main/java/com/otavio/jakarta/cdi/app/condition/StripeAvailableCondition.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ public class StripeAvailableCondition implements Condition {
77

88
@Override
99
public boolean test() {
10-
try {
11-
Class.forName("com.stripe.Stripe");
12-
return true;
13-
} catch (ClassNotFoundException exception) {
14-
return false;
15-
}
10+
return PaymentGateway.STRIPE_AVAILABLE;
1611
}
1712
}

0 commit comments

Comments
 (0)