Skip to content
Snippets Groups Projects
Commit d42ad290 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[search][utils] Replace filter/lambda combo by list comprehension

parent 507babfc
No related branches found
No related tags found
1 merge request!2551.4.x
Pipeline #24047 passed
......@@ -278,7 +278,7 @@ class FilterGenerator(object):
start = (value[0] == '*')
end = (value[-1] == '*')
parts = filter(lambda x: len(x) > 0, value.split('*'))
parts = [x for x in value.split('*') if len(x) > 0]
if len(parts) == 0:
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment