Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin-pygithub-upstream/master' into c…
Browse files Browse the repository at this point in the history
…reate-repo-from-template
  • Loading branch information
simkimsia committed Oct 24, 2021
2 parents 3c91ac8 + 6452ddf commit a116c16
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions github/MainClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,14 +598,10 @@ def search_commits(
"""
assert isinstance(query, str), query
url_parameters = dict()
if (
sort is not github.GithubObject.NotSet
): # pragma no branch (Should be covered)
if sort is not github.GithubObject.NotSet:
assert sort in ("author-date", "committer-date"), sort
url_parameters["sort"] = sort
if (
order is not github.GithubObject.NotSet
): # pragma no branch (Should be covered)
if order is not github.GithubObject.NotSet:
assert order in ("asc", "desc"), order
url_parameters["order"] = order

Expand Down

0 comments on commit a116c16

Please sign in to comment.