Skip to content

Commit 373e6db

Browse files
sondrebrtrz42
andcommitted
Add fallback to create_event_info_instance
Co-authored-by: Thomas Röblitz <trz42@users.noreply.github.com>
1 parent 6996b9e commit 373e6db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/event_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def create_event_info_instance(event_info):
330330
"""
331331
git_host = get_git_hosting_platform()
332332
if git_host == GITHUB:
333-
new_event_info = GitHubEventInfo(event_info)
333+
return GitHubEventInfo(event_info)
334334
elif git_host == GITLAB:
335-
new_event_info = GitLabEventInfo(event_info)
336-
return new_event_info
335+
return GitLabEventInfo(event_info)
336+
return None

0 commit comments

Comments
 (0)