@@ -30,26 +30,18 @@ def __init__(
3030 client_id = os .environ ["SLACK_CLIENT_ID" ],
3131 client_secret = os .environ ["SLACK_CLIENT_SECRET" ],
3232 )
33- oauth_state_bucket_name = (
34- oauth_state_bucket_name or os .environ ["SLACK_STATE_S3_BUCKET_NAME" ]
35- )
36- installation_bucket_name = (
37- installation_bucket_name or os .environ ["SLACK_INSTALLATION_S3_BUCKET_NAME" ]
38- )
33+ oauth_state_bucket_name = oauth_state_bucket_name or os .environ ["SLACK_STATE_S3_BUCKET_NAME" ]
34+ installation_bucket_name = installation_bucket_name or os .environ ["SLACK_INSTALLATION_S3_BUCKET_NAME" ]
3935 self .s3_client = boto3 .client ("s3" )
40- if settings .state_store is None or not isinstance (
41- settings .state_store , AmazonS3OAuthStateStore
42- ):
36+ if settings .state_store is None or not isinstance (settings .state_store , AmazonS3OAuthStateStore ):
4337 settings .state_store = AmazonS3OAuthStateStore (
4438 logger = logger ,
4539 s3_client = self .s3_client ,
4640 bucket_name = oauth_state_bucket_name ,
4741 expiration_seconds = settings .state_expiration_seconds ,
4842 )
4943
50- if settings .installation_store is None or not isinstance (
51- settings .installation_store , AmazonS3InstallationStore
52- ):
44+ if settings .installation_store is None or not isinstance (settings .installation_store , AmazonS3InstallationStore ):
5345 settings .installation_store = AmazonS3InstallationStore (
5446 logger = logger ,
5547 s3_client = self .s3_client ,
0 commit comments