We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 716584a commit d293f27Copy full SHA for d293f27
1 file changed
integrations/github/src/haystack_integrations/components/connectors/github/repo_forker.py
@@ -61,7 +61,7 @@ def __init__(
61
:param create_branch: If True, creates a fix branch based on the issue number
62
"""
63
error_message = "github_token must be a Secret"
64
- if github_token is not None and not isinstance(github_token, Secret):
+ if not isinstance(github_token, Secret):
65
raise TypeError(error_message)
66
67
self.github_token = github_token
0 commit comments