Commit 6afea3bb authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[ci] use generator over list

parent 16dea541
......@@ -103,8 +103,7 @@ elif args['look_for'] == 'latest':
elif args['look_for'] == 'latest-merge':
commits = runCommand('git rev-list HEAD').split('\n')
commits = [c for c in commits if isMergeCommit(c)]
pipeLine = findPipeline(commits)
pipeLine = findPipeline(filter(lambda c: isMergeCommit(c), commits))
if pipeLine is not None:
if args['print_format'] == 'pipeline-id':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment