Mercurial > gemma
changeset 3498:4d44eda484dd
make the linter happier
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 28 May 2019 10:09:21 +0200 |
parents | 1457e2b9d900 |
children | 3d273d76a963 |
files | client/src/lib/classifications.js |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/lib/classifications.js Mon May 27 18:45:20 2019 +0200 +++ b/client/src/lib/classifications.js Tue May 28 10:09:21 2019 +0200 @@ -42,12 +42,10 @@ gmDate !== null && Date.parse(gmDate) > Date.now() - 86400000 // latest value within 24 h ) { - if ( - gmN !== undefined && - gmN !== null && - gmN >= 1124 // 1344: one value every 15 min in 14 days, but the Hydra says: - // let 85% be enough for now. - ) { + // 1344: one value every 15 min in 14 days, but the Hydra says: + // let 85% be enough for now. + const valuesAtLeast = 1124; + if (gmN !== undefined && gmN !== null && gmN >= valuesAtLeast) { return "lime"; } return "yellow";