diff --git a/integrations/github/src/haystack_integrations/components/connectors/github/file_editor.py b/integrations/github/src/haystack_integrations/components/connectors/github/file_editor.py index 2f543b7b72..775f150042 100644 --- a/integrations/github/src/haystack_integrations/components/connectors/github/file_editor.py +++ b/integrations/github/src/haystack_integrations/components/connectors/github/file_editor.py @@ -225,7 +225,7 @@ def _create_file(self, owner: str, repo: str, payload: Dict[str, str], branch: s def _delete_file(self, owner: str, repo: str, payload: Dict[str, str], branch: str) -> str: """Handle file deletion.""" try: - content, sha = self._get_file_content(owner, repo, payload["path"], branch) + _, sha = self._get_file_content(owner, repo, payload["path"], branch) url = f"https://api.github.com/repos/{owner}/{repo}/contents/{payload['path']}" data = {"message": payload["message"], "sha": sha, "branch": branch}