-
Notifications
You must be signed in to change notification settings - Fork 235
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 logic error in logging that logs errors in normal cases #97
Conversation
@tmenninger, |
Thanks for providing this change. I'll merge this in. |
@@ -20,14 +20,15 @@ | |||
public IotHubReceiveTask(IotHubTransport transport) | |||
{ | |||
|
|||
if (transport == null) { | |||
|
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.
Please follow braces style from coding guidelines - https://github.com/Azure/azure-iot-sdk-java/blob/master/.github/CODING_GUIDELINES.md
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.
Fixed
@@ -20,13 +20,14 @@ | |||
|
|||
public IotHubSendTask(IotHubTransport transport) | |||
{ | |||
if (transport == null) | |||
if (transport == null) { | |||
|
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.
Please follow braces style from coding guidelines - https://github.com/Azure/azure-iot-sdk-java/blob/master/.github/CODING_GUIDELINES.md
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.
Fixed
I have two minor comments - if you can address them, this can easily go in. Thanks! |
Thanks for addressing comments. Your changes have been squashed to a single commit and merged at 29a3bcd |
There are coding mistakes in the constructers of both IotHubSendTask and IotHubReceiveTask that log errors under all normal conditions
Checklist
devdoc
folder and added or modified requirements. No API changes.master
branch.Description of the problem
Please correctly use braces
Description of the solution
should become