@@ -96,20 +96,18 @@ def __init__(
96
96
- `client_secret` from `FINCH_CLIENT_SECRET`
97
97
- `webhook_secret` from `FINCH_WEBHOOK_SECRET`
98
98
"""
99
- if access_token is None :
100
- access_token = None
101
99
self .access_token = access_token
102
100
103
101
if client_id is None :
104
- client_id = os .environ .get ("FINCH_CLIENT_ID" ) or None
102
+ client_id = os .environ .get ("FINCH_CLIENT_ID" )
105
103
self .client_id = client_id
106
104
107
105
if client_secret is None :
108
- client_secret = os .environ .get ("FINCH_CLIENT_SECRET" ) or None
106
+ client_secret = os .environ .get ("FINCH_CLIENT_SECRET" )
109
107
self .client_secret = client_secret
110
108
111
109
if webhook_secret is None :
112
- webhook_secret = os .environ .get ("FINCH_WEBHOOK_SECRET" ) or None
110
+ webhook_secret = os .environ .get ("FINCH_WEBHOOK_SECRET" )
113
111
self .webhook_secret = webhook_secret
114
112
115
113
if base_url is None :
@@ -393,20 +391,18 @@ def __init__(
393
391
- `client_secret` from `FINCH_CLIENT_SECRET`
394
392
- `webhook_secret` from `FINCH_WEBHOOK_SECRET`
395
393
"""
396
- if access_token is None :
397
- access_token = None
398
394
self .access_token = access_token
399
395
400
396
if client_id is None :
401
- client_id = os .environ .get ("FINCH_CLIENT_ID" ) or None
397
+ client_id = os .environ .get ("FINCH_CLIENT_ID" )
402
398
self .client_id = client_id
403
399
404
400
if client_secret is None :
405
- client_secret = os .environ .get ("FINCH_CLIENT_SECRET" ) or None
401
+ client_secret = os .environ .get ("FINCH_CLIENT_SECRET" )
406
402
self .client_secret = client_secret
407
403
408
404
if webhook_secret is None :
409
- webhook_secret = os .environ .get ("FINCH_WEBHOOK_SECRET" ) or None
405
+ webhook_secret = os .environ .get ("FINCH_WEBHOOK_SECRET" )
410
406
self .webhook_secret = webhook_secret
411
407
412
408
if base_url is None :
0 commit comments