summaryrefslogtreecommitdiff
path: root/app/models/network/commit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/network/commit.rb')
-rw-r--r--app/models/network/commit.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/network/commit.rb b/app/models/network/commit.rb
index 9357e55b419..22d48c9e661 100644
--- a/app/models/network/commit.rb
+++ b/app/models/network/commit.rb
@@ -24,12 +24,7 @@ module Network
end
def parents(map)
- @commit.parents.map do |p|
- if map.include?(p.id)
- map[p.id]
- end
- end
- .compact
+ map.values_at(*@commit.parent_ids).compact
end
end
end