Skip to content

Commit 5355301

Browse files
committed
refactor(bump): remove intermediate variable
1 parent 4b7716a commit 5355301

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

commitizen/commands/bump.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,7 @@ def find_increment(self, commits: list[git.GitCommit]) -> Increment | None:
133133
raise NoPatternMapError(
134134
f"'{self.config.settings['name']}' rule does not support bump"
135135
)
136-
increment = bump.find_increment(
137-
commits, regex=bump_pattern, increments_map=bump_map
138-
)
139-
return increment
136+
return bump.find_increment(commits, regex=bump_pattern, increments_map=bump_map)
140137

141138
def __call__(self) -> None: # noqa: C901
142139
"""Steps executed to bump."""

0 commit comments

Comments
 (0)