Fix error in copilot

This commit is contained in:
Heiner Lohaus 2024-01-21 20:01:53 +01:00
parent 7e63b412b6
commit d9386946cf

View File

@ -31,7 +31,7 @@ def get_pr_details(github: Github) -> PullRequest:
PullRequest: An object representing the pull request. PullRequest: An object representing the pull request.
""" """
with open('./pr_number', 'r') as file: with open('./pr_number', 'r') as file:
pr_number = int(file.read()) pr_number = int(file.read().strip())
if not pr_number: if not pr_number:
return return