Fix nodejs client behaviour when no feature returned
diff --git a/nodejs/example/routeguide/client.js b/nodejs/example/routeguide/client.js index 3ccaca4..dec48c7 100644 --- a/nodejs/example/routeguide/client.js +++ b/nodejs/example/routeguide/client.js
@@ -57,16 +57,12 @@ return; } - // console.log("Feature", feature.toObject()); - if (feature.getName() && feature.getName() != "undefined") { console.log('Found feature called "' + feature.getName() + '" at ' + feature.getLocation().getLatitude()/COORD_FACTOR + ', ' + feature.getLocation().getLongitude()/COORD_FACTOR); } else { - console.log('Found no feature at ' + - feature.getLocation().getLatitude()/COORD_FACTOR + ', ' + - feature.getLocation().getLongitude()/COORD_FACTOR); + console.log('Found no feature'); } next(); }