proporties: refactor if to ternary
This commit is contained in:
parent
301630e47e
commit
ed731f087f
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue