fix incorrect comments for "bail if not ..." for WAV and image cases.
This commit is contained in:
parent
ad5d4fb139
commit
05a49ca129
1 changed files with 2 additions and 2 deletions
|
|
@ -681,7 +681,7 @@ class WavConverter(MediaConverter):
|
|||
"""
|
||||
|
||||
def convert(self, local_path, **kwargs) -> Union[None, DocumentConverterResult]:
|
||||
# Bail if not a XLSX
|
||||
# Bail if not a WAV
|
||||
extension = kwargs.get("file_extension", "")
|
||||
if extension.lower() != ".wav":
|
||||
return None
|
||||
|
|
@ -797,7 +797,7 @@ class ImageConverter(MediaConverter):
|
|||
"""
|
||||
|
||||
def convert(self, local_path, **kwargs) -> Union[None, DocumentConverterResult]:
|
||||
# Bail if not a XLSX
|
||||
# Bail if not an image
|
||||
extension = kwargs.get("file_extension", "")
|
||||
if extension.lower() not in [".jpg", ".jpeg", ".png"]:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue