From 78327107a4218d214c2f0fadb5b7a541f0a17dd5 Mon Sep 17 00:00:00 2001 From: Luke Hinds Date: Mon, 6 Jan 2025 11:35:49 +0000 Subject: [PATCH] Remove list check --- src/codegate/pipeline/secrets/signatures.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/codegate/pipeline/secrets/signatures.py b/src/codegate/pipeline/secrets/signatures.py index 4a013619..928668b2 100644 --- a/src/codegate/pipeline/secrets/signatures.py +++ b/src/codegate/pipeline/secrets/signatures.py @@ -223,10 +223,6 @@ def find_in_string(cls, text: Union[str, List[str]]) -> List[Match]: if not cls._yaml_path: raise RuntimeError("SecretFinder not initialized.") - # Convert list to string if necessary (needed for Cline, which sends a list of strings) - if isinstance(text, list): - text = "\n".join(str(line) for line in text) - matches = [] # Split text into lines for processing