diff --git a/lib/proportions.js b/lib/proportions.js index b30f206..329675d 100644 --- a/lib/proportions.js +++ b/lib/proportions.js @@ -119,10 +119,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl"], var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"]) var hwDict = count(nodes, ["nodeinfo", "hardware", "model"]) var geoDict = count(nodes, ["nodeinfo", "location"], function (d) { - if (d) - return "ja" - else - return "nein" + return d ? "ja" : "nein" }) var autoDict = count(nodes, ["nodeinfo", "software", "autoupdater"], function (d) { if (d === null)