Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unnecessary whitespace #27

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion certificate/CertificateStatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class CertificateStatistics:
"""This class is responsible for helping with calculations of meta data."""

CLASS_VERSION = "0.01"

certificate_time_format = CertificateTimeFormat.CertificateTimeFormat().cert_time_format
Expand Down
4 changes: 2 additions & 2 deletions certificate/FileOperations.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def ensure_directory(self) -> None:
"""
Ensures that the directory for the file path exists. If not, it creates the necessary directories.
"""

directory = os.path.dirname(self.file_path)
if not os.path.exists(directory):
os.makedirs(directory)
Expand All @@ -41,7 +41,7 @@ def write_binary(self, content: bytes) -> None:
ValueError: If the content is not of type bytes.
IOError: If there is an issue writing to the file.
"""

if not isinstance(content, bytes):
raise ValueError("Content must be of type bytes.")

Expand Down