Skip to content

Commit

Permalink
MAINT: Remove redundant pass statement (#2739)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-t-1 authored Jul 7, 2024
1 parent bdc9814 commit c96d01c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pypdf/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,7 @@ def decode_stream_data(stream: Any) -> Union[bytes, str]: # utils.StreamObject
height = stream.get(IA.HEIGHT, ())
data = CCITTFaxDecode.decode(data, params, height)
elif filter_type == "/Crypt":
if "/Name" not in params and "/Type" not in params:
pass
else:
if "/Name" in params or "/Type" in params:
raise NotImplementedError(
"/Crypt filter with /Name or /Type not supported yet"
)
Expand Down

0 comments on commit c96d01c

Please sign in to comment.