Skip to content

Commit ded3a95

Browse files
LuisHenriLee-W
authored andcommitted
refactor(commands-bump): make changelog variable in 1 line
1 parent ac81729 commit ded3a95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commitizen/commands/bump.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ def __call__(self): # noqa: C901
198198

199199
# If user specified changelog_to_stdout, they probably want the
200200
# changelog to be generated as well, this is the most intuitive solution
201-
if not self.changelog and self.changelog_to_stdout:
202-
self.changelog = True
201+
self.changelog = self.changelog or bool(self.changelog_to_stdout)
203202

204203
# No commits, there is no need to create an empty tag.
205204
# Unless we previously had a prerelease.

0 commit comments

Comments
 (0)