Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fetch timeout for newly added files #822

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

raulchen
Copy link
Contributor

Describe what this PR does / why we need it

When one side of the file is empty return #self.left_lines > 0 and #self.right_lines > 0 will always be false. Thus is_ready_to_render will never be true.

Does this pull request fix one issue?

Fixes #817

Describe how you did it

Describe how to verify it

Special notes for reviews

Checklist

  • Passing tests and linting standards
  • Documentation updates in README.md and doc/octo.txt

Copy link
Contributor

@ldelossa ldelossa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just outside looking in, fix makes total sense 👍

Copy link
Collaborator

@GuillaumeLagrange GuillaumeLagrange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for the fix

@GuillaumeLagrange GuillaumeLagrange merged commit d66d886 into pwntester:master Jan 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something wrong in the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] timeout fetching file in PR review window for newly added files
3 participants