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

Commit fb04e28

Browse files
bearomorphismLee-W
authored andcommitted
refactor(git): remove redundant if branch
1 parent 8cf7acd commit fb04e28

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

‎commitizen/git.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,4 @@ def _get_log_as_str_list(start: str | None, end: str, args: str) -> list[str]:
328328
c = cmd.run(command)
329329
if c.return_code != 0:
330330
raise GitCommandError(c.err)
331-
if not c.out:
332-
return []
333331
return c.out.split(f"{delimiter}\n")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /