proporties: refactor if to ternary

This commit is contained in:
Nils Schneider 2015-07-08 15:43:58 +02:00
parent 301630e47e
commit ed731f087f

View file

@ -119,10 +119,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl"],
var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"]) var fwDict = count(nodes, ["nodeinfo", "software", "firmware", "release"])
var hwDict = count(nodes, ["nodeinfo", "hardware", "model"]) var hwDict = count(nodes, ["nodeinfo", "hardware", "model"])
var geoDict = count(nodes, ["nodeinfo", "location"], function (d) { var geoDict = count(nodes, ["nodeinfo", "location"], function (d) {
if (d) return d ? "ja" : "nein"
return "ja"
else
return "nein"
}) })
var autoDict = count(nodes, ["nodeinfo", "software", "autoupdater"], function (d) { var autoDict = count(nodes, ["nodeinfo", "software", "autoupdater"], function (d) {
if (d === null) if (d === null)