Commit e3b599c5 authored by Gary Holtz's avatar Gary Holtz

Add a `uniq` filter to SHAs passed to the keep around service

Changelog: performance
parent bf15be87
......@@ -19,7 +19,7 @@ module Gitlab
end
def execute(shas)
shas.each do |sha|
shas.uniq.each do |sha|
next unless sha.present? && commit_by(oid: sha)
next if kept_around?(sha)
......
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