Skip to content

Commit 5d31286

Browse files
author
Christian Riedel
committed
remove old number check
This part of the code should have been replaced by the iteration checking.
1 parent 3b6c613 commit 5d31286

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/commit_msg_jira_hook/check_jira_tag.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ def main(ctx, jira_tag: str, jira_url: str, verify: bool, commit_msg_file: str)
9797
click.echo(f"'{jira_tag.upper()}' tag not found in commit message.")
9898
ctx.abort()
9999

100-
if extract.group(2) is None: # type: ignore
101-
click.echo(f"'{jira_tag.upper()}' tag but no number found in commit message.")
102-
ctx.abort()
103-
104100
for match in re.finditer(regex_str, c_msg_cleaned):
105101
#: Check if tag has a number
106102
if match.group(2) is None: # type: ignore

0 commit comments

Comments
 (0)