Fix mistake in Repository.create_fork() (#1383)

I modified #1306 to use the NotSet parameter after
it was pointed out this was more appropriate however
I did not also update the conditional.
This commit is contained in:
Tim Gates
2020-02-09 20:38:50 +11:00
committed by GitHub
parent 882fe0871a
commit ad040bafaf
+1 -1
View File
@@ -2052,7 +2052,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
organization, str
), organization
post_parameters = {}
if organization is not None:
if organization is not github.GithubObject.NotSet:
post_parameters["organization"] = organization
headers, data = self._requester.requestJsonAndCheck(
"POST", self.url + "/forks", input=post_parameters,