Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b269775

Browse filesBrowse files
pratik-anuragByron
authored andcommitted
removed Unnecessary “else” after “return”
1 parent 7635314 commit b269775
Copy full SHA for b269775

1 file changed

+1-2Lines changed: 1 addition & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎git/objects/commit.py‎

Copy file name to clipboardExpand all lines: git/objects/commit.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ def count(self, paths='', **kwargs):
174174
# as the empty paths version will ignore merge commits for some reason.
175175
if paths:
176176
return len(self.repo.git.rev_list(self.hexsha, '--', paths, **kwargs).splitlines())
177-
else:
178-
return len(self.repo.git.rev_list(self.hexsha, **kwargs).splitlines())
177+
return len(self.repo.git.rev_list(self.hexsha, **kwargs).splitlines())
179178

180179
@property
181180
def name_rev(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.