fossasia / open-event-server

Branches of the if statement have similar implementation PTC-W0051
Anti-pattern
Major
5 months ago3 years old
All branches in the conditional structure have same implementation
340
341    @staticmethod
342    def charge_payment(order_identifier, token):
343        if get_settings()['app_environment'] == Environment.PRODUCTION:344            omise.api_secret = get_settings()['omise_test_secret']
345            omise.api_public = get_settings()['omise_test_public']
346        else: