Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fe72043

Browse files
bearomorphismLee-W
authored andcommitted
refactor(check): remove unnecessary variable
1 parent ba57182 commit fe72043

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

commitizen/commands/check.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,11 @@ def __call__(self):
7272
raise NoCommitsFoundError(f"No commit found with range: '{self.rev_range}'")
7373

7474
pattern = self.cz.schema_pattern()
75-
ill_formatted_commits = [
76-
commit
77-
for commit in commits
78-
if not self.validate_commit_message(commit.message, pattern)
79-
]
8075
displayed_msgs_content = "\n".join(
8176
[
8277
f'commit "{commit.rev}": "{commit.message}"'
83-
for commit in ill_formatted_commits
78+
for commit in commits
79+
if not self.validate_commit_message(commit.message, pattern)
8480
]
8581
)
8682
if displayed_msgs_content:

0 commit comments

Comments
 (0)