Skip to content

Commit d293f27

Browse files
committed
fix: revert token check
1 parent 716584a commit d293f27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • integrations/github/src/haystack_integrations/components/connectors/github

integrations/github/src/haystack_integrations/components/connectors/github/repo_forker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(
6161
:param create_branch: If True, creates a fix branch based on the issue number
6262
"""
6363
error_message = "github_token must be a Secret"
64-
if github_token is not None and not isinstance(github_token, Secret):
64+
if not isinstance(github_token, Secret):
6565
raise TypeError(error_message)
6666

6767
self.github_token = github_token

0 commit comments

Comments
 (0)