Prefer leading dots over trailing dots

This commit is contained in:
Lin Jen-Shin 2017-01-05 23:49:11 +08:00
parent 0b3b56b34d
commit 5e12b3d841
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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