Skip to content

Commit

Permalink
refactor: remove unnecessary whitespace
Browse files Browse the repository at this point in the history
Blank lines should not contain any tabs or spaces.
  • Loading branch information
deepsource-autofix[bot] authored Jan 7, 2024
1 parent da7c802 commit e1ea148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit e1ea148

Please sign in to comment.