Skip to content

Commit 293a2c5

Browse files
committed
Use _instance_or_null in github3.git
1 parent 01c75e1 commit 293a2c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github3/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def recurse(self):
213213
"""
214214
json = self._json(self._get(self._api, params={'recursive': '1'}),
215215
200)
216-
return Tree(json, self) if json else None
216+
return self._instance_or_null(Tree, json)
217217

218218

219219
class Hash(GitHubObject):

0 commit comments

Comments
 (0)