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: golangci-lint error (backport #2740) #2801

Merged
merged 2 commits into from
Jun 1, 2024
Merged

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 13, 2024

Which issue(s) this PR fixes:

longhorn/longhorn#7448, longhorn/longhorn#8556

What this PR does / why we need it:

Special notes for your reviewer:

Additional documentation or context


This is an automatic backport of pull request #2740 done by [Mergify](https://mergify.com).

Signed-off-by: PoAn Yang <poan.yang@suse.com>
(cherry picked from commit 2306e97)
@mergify mergify bot requested a review from a team as a code owner May 13, 2024 06:49
@mergify mergify bot mentioned this pull request May 13, 2024
Signed-off-by: PoAn Yang <poan.yang@suse.com>
AddFunc: bic.enqueueBackingImage,
UpdateFunc: func(old, cur interface{}) { bic.enqueueBackingImage(cur) },
DeleteFunc: bic.enqueueBackingImage,
})
}); err != nil {
logrus.WithError(err).Fatal("Failed to register event handler for backing image")
Copy link
Member

@innobead innobead Jun 1, 2024

Choose a reason for hiding this comment

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

Didn't notice this Fatal used here, which will cause the process to exit immediately. We should return the err back to the caller and let it handle it instead.

cc @FrankYang0529

Copy link
Contributor

Choose a reason for hiding this comment

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

@innobead innobead merged commit 1082ab0 into v1.6.x Jun 1, 2024
6 checks passed
@innobead innobead deleted the mergify/bp/v1.6.x/pr-2740 branch June 1, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants