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:
authorLin Jen-Shin <godfat@godfat.org>2016-12-08 12:08:25 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-12-08 12:08:25 +0300
commit3fa3fcd7876262bb63966debd04d16ea219fad73 (patch)
tree8ccb4823ba9d9a47e8ee7d6514c274c223288f80 /app/services/files/delete_service.rb
parent691f1c496834078ba41209597558259d20790a0b (diff)
Cleanup parameters, easier to understand and
more consistent across different methodst
Diffstat (limited to 'app/services/files/delete_service.rb')
-rw-r--r--app/services/files/delete_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/files/delete_service.rb b/app/services/files/delete_service.rb
index b3f323d0173..45a9a559469 100644
--- a/app/services/files/delete_service.rb
+++ b/app/services/files/delete_service.rb
@@ -4,11 +4,11 @@ module Files
repository.remove_file(
current_user,
@file_path,
- @commit_message,
- @target_branch,
+ message: @commit_message,
+ branch_name: @target_branch,
author_email: @author_email,
author_name: @author_name,
- source_branch: @source_branch)
+ source_branch_name: @source_branch)
end
end
end