From c96d01ccb19e60c1d761ab9ca5e9aed75361cd28 Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Sun, 7 Jul 2024 20:26:49 +0100 Subject: [PATCH] MAINT: Remove redundant pass statement (#2739) --- pypdf/filters.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pypdf/filters.py b/pypdf/filters.py index 93bb478ff..5e6a10f78 100644 --- a/pypdf/filters.py +++ b/pypdf/filters.py @@ -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" )