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

src: fix range errors #162

Merged
merged 2 commits into from
Nov 8, 2024
Merged

src: fix range errors #162

merged 2 commits into from
Nov 8, 2024

Conversation

flakey5
Copy link
Member

@flakey5 flakey5 commented Nov 6, 2024

@flakey5 flakey5 requested a review from a team as a code owner November 6, 2024 10:03
const provider = getProvider(ctx);

let result: GetFileResult | undefined;
try {
Copy link
Member

Choose a reason for hiding this comment

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

Instead of try catch can we use promises here?

Copy link
Member

Choose a reason for hiding this comment

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

Because it would look cleaner keeping the same code with a .catch() and handling the scenarios without all this extra code

Copy link
Member Author

Choose a reason for hiding this comment

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

Since this returns a response in the catch scope we can't

Signed-off-by: flakey5 <[email protected]>
Copy link

@bmuenzenmeyer bmuenzenmeyer left a comment

Choose a reason for hiding this comment

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

LGTM

@flakey5 flakey5 merged commit f0ec2b8 into main Nov 8, 2024
5 checks passed
@flakey5 flakey5 deleted the flakey5/20241106/148 branch November 8, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: get: The requested range is not satisfiable (10039)
4 participants