aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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