Commit 5e12b3d8 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Prefer leading dots over trailing dots

parent 0b3b56b3
class CreateBranchService < BaseService class CreateBranchService < BaseService
def execute(branch_name, ref) def execute(branch_name, ref)
result = ValidateNewBranchService.new(project, current_user). result = ValidateNewBranchService.new(project, current_user)
execute(branch_name) .execute(branch_name)
return result if result[:status] == :error return result if result[:status] == :error
......
...@@ -33,15 +33,15 @@ class EmailsOnPushWorker ...@@ -33,15 +33,15 @@ class EmailsOnPushWorker
reverse_compare = false reverse_compare = false
if action == :push if action == :push
compare = CompareService.new(project, after_sha). compare = CompareService.new(project, after_sha)
execute(project, before_sha) .execute(project, before_sha)
diff_refs = compare.diff_refs diff_refs = compare.diff_refs
return false if compare.same return false if compare.same
if compare.commits.empty? if compare.commits.empty?
compare = CompareService.new(project, before_sha). compare = CompareService.new(project, before_sha)
execute(project, after_sha) .execute(project, after_sha)
diff_refs = compare.diff_refs diff_refs = compare.diff_refs
reverse_compare = true reverse_compare = true
......
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