summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
diff options
context:
space:
mode:
authorPratik Anurag <panurag247365@gmail.com>2019-10-15 19:55:14 +0530
committerSebastian Thiel <sebastian.thiel@icloud.com>2019-10-15 18:47:24 +0200
commitb269775a75d9ccc565bbc6b5d4c6e600db0cd942 (patch)
tree2c9900553a651c538907d53f5b2bb246e56427ba /git/objects/commit.py
parent763531418cb3a2f23748d091be6e704e797a3968 (diff)
downloadgitpython-b269775a75d9ccc565bbc6b5d4c6e600db0cd942.tar.gz
removed Unnecessary “else” after “return”
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r--git/objects/commit.py3
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):