Skip to content

Commit 791bc95

Browse files
committed
refactor: align behavior with other methods
1 parent 5a069dd commit 791bc95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/arduino/app_utils/tls_cert_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def get_certificates_paths(cls, certs_dir: str = DEFAULT_CERTS_DIR) -> tuple[str
116116
Returns:
117117
tuple[str, str]: Paths to certificate_file and private_key_file
118118
"""
119-
return cls.get_certificate_path(certs_dir), cls.get_private_key_path(certs_dir)
119+
target_dir = certs_dir or DEFAULT_CERTS_DIR
120+
return cls.get_certificate_path(target_dir), cls.get_private_key_path(target_dir)
120121

121122
@classmethod
122123
def get_certificate_path(cls, certs_dir: str = DEFAULT_CERTS_DIR) -> str:

0 commit comments

Comments
 (0)