Skip to content

Commit acf1d59

Browse files
committedOct 29, 2024
Minor corrections.
1 parent 8167c08 commit acf1d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/utils/opt_in_checker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def create_or_check_consent_dir(self):
148148
"""
149149
base_dir = self.consent_file_base_dir()
150150
consent_file_subdirectory = self.consent_file_subdirectory()
151-
if self.consent_file_base_dir() is None or consent_file_subdirectory is None:
151+
if base_dir is None or consent_file_subdirectory is None:
152152
return False
153153
base_is_dir = os.path.isdir(base_dir)
154154
base_dir_exists = os.path.exists(base_dir)
@@ -161,7 +161,7 @@ def create_or_check_consent_dir(self):
161161
"Please allow write access to the following directory: {}".format(base_dir))
162162
return False
163163

164-
consent_file_dir = os.path.join(self.consent_file_base_dir(), consent_file_subdirectory)
164+
consent_file_dir = os.path.join(base_dir, consent_file_subdirectory)
165165
consent_file_is_dir = os.path.isdir(consent_file_dir)
166166
consent_file_dir_exists = os.path.exists(consent_file_dir)
167167

0 commit comments

Comments
 (0)