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 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)
|
||||
|
Loading…
Reference in New Issue
Block a user