Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-05-09 13:27:17 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-05-09 13:27:17 +0300
commit48254d187f421dfeb85a84bf2b86399add6e6a67 (patch)
tree1c816bf6defc73c0a50f0a287367e9518a0b0a02 /app/workers
parent62b0eb2c0ba02d2a9c9515722dfcb7ec61b7fc6a (diff)
Don't use DiffCollection for deltas
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/irker_worker.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/workers/irker_worker.rb b/app/workers/irker_worker.rb
index c9658b3fe17..22f67fa9e9f 100644
--- a/app/workers/irker_worker.rb
+++ b/app/workers/irker_worker.rb
@@ -142,10 +142,10 @@ class IrkerWorker
end
def files_count(commit)
- diffs = commit.raw_diffs(deltas_only: true)
+ diff_size = commit.raw_deltas.size
- files = "#{diffs.real_size} file"
- files += 's' if diffs.size > 1
+ files = "#{diff_size} file"
+ files += 's' if diff_size > 1
files
end