Skip to content

Commit ff25a75

Browse files
authored
Merge pull request MicrosoftDocs#32932 from MicrosoftDocs/Alberto-Vega-MSFT-patch-2
Removing ! operator to avoid exception
2 parents 51d39b8 + c22f30f commit ff25a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/iot-hub/iot-hub-node-node-schedule-jobs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ In this section, you create a Node.js console app that responds to a direct meth
101101
102102
// Respond the cloud app for the direct method
103103
response.send(200, function(err) {
104-
if (!err) {
104+
if (err) {
105105
console.error('An error occurred when sending a method response:\n' + err.toString());
106106
} else {
107107
console.log('Response to method \'' + request.methodName + '\' sent successfully.');

0 commit comments

Comments
 (0)