Prefer leading dots over trailing dots
This commit is contained in:
parent
0b3b56b34d
commit
5e12b3d841
|
@ -1,7 +1,7 @@
|
|||
class CreateBranchService < BaseService
|
||||
def execute(branch_name, ref)
|
||||
result = ValidateNewBranchService.new(project, current_user).
|
||||
execute(branch_name)
|
||||
result = ValidateNewBranchService.new(project, current_user)
|
||||
.execute(branch_name)
|
||||
|
||||
return result if result[:status] == :error
|
||||
|
||||
|
|
|
@ -33,15 +33,15 @@ class EmailsOnPushWorker
|
|||
reverse_compare = false
|
||||
|
||||
if action == :push
|
||||
compare = CompareService.new(project, after_sha).
|
||||
execute(project, before_sha)
|
||||
compare = CompareService.new(project, after_sha)
|
||||
.execute(project, before_sha)
|
||||
diff_refs = compare.diff_refs
|
||||
|
||||
return false if compare.same
|
||||
|
||||
if compare.commits.empty?
|
||||
compare = CompareService.new(project, before_sha).
|
||||
execute(project, after_sha)
|
||||
compare = CompareService.new(project, before_sha)
|
||||
.execute(project, after_sha)
|
||||
diff_refs = compare.diff_refs
|
||||
|
||||
reverse_compare = true
|
||||
|
|
Loading…
Reference in New Issue