From b269775a75d9ccc565bbc6b5d4c6e600db0cd942 Mon Sep 17 00:00:00 2001 From: Pratik Anurag Date: Tue, 15 Oct 2019 19:55:14 +0530 Subject: =?UTF-8?q?removed=20Unnecessary=20=E2=80=9Celse=E2=80=9D=20after?= =?UTF-8?q?=20=E2=80=9Creturn=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git/objects/commit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/objects/commit.py') 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): -- cgit v1.2.1