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 56ef1e0

Browse files
bearomorphismLee-W
authored andcommitted
refactor(ExpectedExit): make the constructor more compact
1 parent 312ca49 commit 56ef1e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎commitizen/exceptions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ class ExpectedExit(CommitizenException):
5959
exit_code = ExitCode.EXPECTED_EXIT
6060

6161
def __init__(self, *args: str, **kwargs: Any) -> None:
62-
output_method = kwargs.get("output_method") or out.write
63-
kwargs["output_method"] = output_method
62+
kwargs["output_method"] = kwargs.get("output_method") or out.write
6463
super().__init__(*args, **kwargs)
6564

6665

0 commit comments

Comments
(0)

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