Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitb269775

Browse files
pratik-anuragByron
authored andcommitted
removed Unnecessary “else” after “return”
1 parent7635314 commitb269775

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎git/objects/commit.py

Lines 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
ifpaths:
176176
returnlen(self.repo.git.rev_list(self.hexsha,'--',paths,**kwargs).splitlines())
177-
else:
178-
returnlen(self.repo.git.rev_list(self.hexsha,**kwargs).splitlines())
177+
returnlen(self.repo.git.rev_list(self.hexsha,**kwargs).splitlines())
179178

180179
@property
181180
defname_rev(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp