diff options
author | Dominik Schloesser <dsc@dosc.net> | 2017-09-04 14:02:59 +0200 |
---|---|---|
committer | Dominik Schloesser <dsc@dosc.net> | 2017-09-04 14:02:59 +0200 |
commit | 024f87b9eda0606126894d4ec440b6ca9a513557 (patch) | |
tree | c477b29f3d917013aa3bb7e23e9585ae64a62aa9 /python.d | |
parent | b5427b5a495dc9f66465d25ebdf1c608bdac563a (diff) |
len() optimized away
Diffstat (limited to 'python.d')
-rw-r--r-- | python.d/chrony.chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python.d/chrony.chart.py b/python.d/chrony.chart.py index 9db1f8689f..580a2e6760 100644 --- a/python.d/chrony.chart.py +++ b/python.d/chrony.chart.py @@ -96,7 +96,7 @@ class Service(ExecutableService): key, value = (l.strip() for l in line) except ValueError: continue - if len(value) > 0: + if value: parsed[key] = value.split()[0] for key, dim_id, multiplier in CHRONY: |