summaryrefslogtreecommitdiffstats
path: root/3rd_party/collectd-ves-app/ves_app/normalizer.py
diff options
context:
space:
mode:
Diffstat (limited to '3rd_party/collectd-ves-app/ves_app/normalizer.py')
-rw-r--r--3rd_party/collectd-ves-app/ves_app/normalizer.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/3rd_party/collectd-ves-app/ves_app/normalizer.py b/3rd_party/collectd-ves-app/ves_app/normalizer.py
index 48a379c7..ddaad617 100644
--- a/3rd_party/collectd-ves-app/ves_app/normalizer.py
+++ b/3rd_party/collectd-ves-app/ves_app/normalizer.py
@@ -216,9 +216,7 @@ class CollectdData(object):
@classmethod
def is_regular_expression(cls, expr):
- if len(expr) > 1 and expr[0] == '/' and expr[-1] == '/':
- return True
- return False
+ return len(expr) > 1 and expr[0] == '/' and expr[-1] == '/'
def match(self, **kargs):
# compare the metric