Skip to content

Commit

Permalink
avoid null on key
Browse files Browse the repository at this point in the history
  • Loading branch information
nmsaguiar committed Aug 8, 2023
1 parent 5125f8b commit fb22db6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions config/objects/nInput_EndPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ nInput_EndPoints.prototype.testURL = function(anEntry) {
canDoIt = false;
}

return {
key: anEntry.key,
var _res = {
result: canDoIt,
errorMessage: errorMessage,
latencyInMs: lat
};
}
if (isDef(anEntry.key)) _res.key = anEntry.key
return _res
}
};

Expand Down Expand Up @@ -83,12 +84,13 @@ nInput_EndPoints.prototype.testPort = function(anEntry) {
canDoIt = false;
}

return {
key: anEntry.key,
var _res = {
result: canDoIt,
errorMessage: errorMessage,
latencyInMs: lat
};
}
if (isDef(anEntry.key)) _res.key = anEntry.key
return _res
}
};

Expand Down

0 comments on commit fb22db6

Please sign in to comment.