-
Notifications
You must be signed in to change notification settings - Fork 484
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
style: Enable errcheck linter and associated recommendations #3736
Conversation
See #3565 Signed-off-by: Bryon Nevis <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@@ -36,7 +36,7 @@ func distribute(dic *di.Container, n models.Notification) errors.EdgeX { | |||
} | |||
for _, address := range sub.Channels { | |||
// Async transmit the notification to improve the performance | |||
go transmit(dic, n, sub, address) | |||
go transmit(dic, n, sub, address) // nolint:errcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems clearer to just suppress the error.
@@ -35,7 +35,7 @@ func AddNotification(n models.Notification, ctx context.Context, dic *di.Contain | |||
addedNotification.Id, | |||
correlation.FromContext(ctx)) | |||
|
|||
go distribute(dic, addedNotification) | |||
go distribute(dic, addedNotification) // nolint:errcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems clearer to just suppress the error.
@@ -112,7 +112,7 @@ func escalatedSend(dic *di.Container, n models.Notification, trans models.Transm | |||
} | |||
|
|||
for _, address := range sub.Channels { | |||
go transmit(dic, escalated, sub, address) | |||
go transmit(dic, escalated, sub, address) // nolint:errcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems clearer to just suppress the error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
recheck |
See #3565
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)Testing Instructions
make test; make docker; make run dev in edgex-compose
New Dependency Instructions (If applicable)