diff options
author | Pratik Anurag <panurag247365@gmail.com> | 2019-10-15 19:55:14 +0530 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2019-10-15 18:47:24 +0200 |
commit | b269775a75d9ccc565bbc6b5d4c6e600db0cd942 (patch) | |
tree | 2c9900553a651c538907d53f5b2bb246e56427ba /git/objects/commit.py | |
parent | 763531418cb3a2f23748d091be6e704e797a3968 (diff) | |
download | gitpython-b269775a75d9ccc565bbc6b5d4c6e600db0cd942.tar.gz |
removed Unnecessary “else” after “return”
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r-- | git/objects/commit.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py index 997fc590..f7201d90 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -174,8 +174,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): # as the empty paths version will ignore merge commits for some reason. if paths: return len(self.repo.git.rev_list(self.hexsha, '--', paths, **kwargs).splitlines()) - else: - return len(self.repo.git.rev_list(self.hexsha, **kwargs).splitlines()) + return len(self.repo.git.rev_list(self.hexsha, **kwargs).splitlines()) @property def name_rev(self): |