Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Add isFirst check before err check#4326

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 1 commit intomainfromfixblock
Oct 3, 2022
Merged

fix: Add isFirst check before err check#4326

kylecarbs merged 1 commit intomainfromfixblock
Oct 3, 2022

Conversation

kylecarbs
Copy link
Member

This was causing TestBlockNonBrowser to hang and fail.

This was causing TestBlockNonBrowser to hang and fail.
@kylecarbskylecarbs self-assigned thisOct 3, 2022
@kylecarbs
Copy link
MemberAuthor

Force merging this because CI is in shambles right now!

@kylecarbskylecarbs merged commit88d49db intomainOct 3, 2022
@kylecarbskylecarbs deleted the fixblock branchOctober 3, 2022 14:51
if isFirst {
if res.StatusCode == http.StatusConflict {
iferr != nil &&res.StatusCode == http.StatusConflict {
Copy link
Member

Choose a reason for hiding this comment

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

Should this beerr == nil? Thinking this will still have the potential nil pointer deref iferr != nil?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Ahh, you're correct. I'll fix this now in another PR. I merged due to panic ofmain being busted!

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

It seems the error isn't nil there actually, so a weird case. I'm just going to check for the status code, then it should be fine!

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mafredrimafredrimafredri left review comments

Assignees

@kylecarbskylecarbs

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@kylecarbs@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp