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:
authorDouwe Maan <douwe@selenight.nl>2017-09-25 11:23:43 +0300
committerDouwe Maan <douwe@selenight.nl>2017-09-25 11:23:43 +0300
commit19a30595d90d771ffd6ae0be8ada0842b151e3f6 (patch)
tree0d8182be4ff61205bf6f9c04e03fa7058c6f01d3 /lib/gitlab/diff
parent91b40b3bab63b1b9dae4f3efa54f259b09c6eab3 (diff)
Remove unnecessary comments
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r--lib/gitlab/diff/diff_refs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/diff/diff_refs.rb b/lib/gitlab/diff/diff_refs.rb
index 1c4c1deb7a9..c98eefbce25 100644
--- a/lib/gitlab/diff/diff_refs.rb
+++ b/lib/gitlab/diff/diff_refs.rb
@@ -57,8 +57,8 @@ module Gitlab
length = [sha1.length, sha2.length].min
- # If either of the shas is below 7 characters in length, we cannot be sure
- # if they actually refer to the same commit because of hash collision.
+ # If either of the shas is below the minimum length, we cannot be sure
+ # that they actually refer to the same commit because of hash collision.
return false if length < Commit::MIN_SHA_LENGTH
sha1[0, length] == sha2[0, length]