summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-01-06 04:41:17 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-01-06 04:41:17 +0800
commitdea589d635d4c41fbf0db721b132ea466c34cb4a (patch)
treedc8d37aa2e1cd6c8df9c5488d03b8479772a5852 /app/models
parenta30f278bdee399346f199ada0e33f5c2d233d861 (diff)
downloadgitlab-ce-dea589d635d4c41fbf0db721b132ea466c34cb4a.tar.gz
Prefer leading dots over trailing dots
Diffstat (limited to 'app/models')
-rw-r--r--app/models/merge_request_diff.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/merge_request_diff.rb b/app/models/merge_request_diff.rb
index 7946d8e123e..00c2a3695af 100644
--- a/app/models/merge_request_diff.rb
+++ b/app/models/merge_request_diff.rb
@@ -169,8 +169,8 @@ class MergeRequestDiff < ActiveRecord::Base
# When compare merge request versions we want diff A..B instead of A...B
# so we handle cases when user does squash and rebase of the commits between versions.
# For this reason we set straight to true by default.
- CompareService.new(project, head_commit_sha).
- execute(project, sha, straight: straight)
+ CompareService.new(project, head_commit_sha)
+ .execute(project, sha, straight: straight)
end
def commits_count