Skip to content

Commit

Permalink
apply file type when not None
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Oct 25, 2022
1 parent cc2f6d7 commit 4ea1137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credsweeper/file_handler/content_provider.py
Expand Up @@ -14,7 +14,7 @@ def __init__(
file_type: Optional[str] = None, #
info: Optional[str] = None) -> None:
self.file_path: str = file_path
self.file_type: str = file_type if file_type else Util.get_extension(file_path)
self.file_type: str = file_type if file_type is not None else Util.get_extension(file_path)
self.info: str = info

@abstractmethod
Expand Down

0 comments on commit 4ea1137

Please sign in to comment.