summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-29 17:58:26 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-29 17:58:26 +0800
commit5fee7ec1a0016fb8789abf2f3b7e2faaf24518f5 (patch)
treebfe6087711a0df7ea9f0039b2350fb8b2f9887fd /app
parentd41e83e91a2b2c90ab51feda61e105818e1713be (diff)
downloadgitlab-ce-5fee7ec1a0016fb8789abf2f3b7e2faaf24518f5.tar.gz
It was never used
Diffstat (limited to 'app')
-rw-r--r--app/models/project_services/slack_service/build_message.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/slack_service/build_message.rb b/app/models/project_services/slack_service/build_message.rb
index 69c21b3fc38..0fca4267bad 100644
--- a/app/models/project_services/slack_service/build_message.rb
+++ b/app/models/project_services/slack_service/build_message.rb
@@ -9,7 +9,7 @@ class SlackService
attr_reader :user_name
attr_reader :duration
- def initialize(params, commit = true)
+ def initialize(params)
@sha = params[:sha]
@ref_type = params[:tag] ? 'tag' : 'branch'
@ref = params[:ref]
@@ -36,7 +36,7 @@ class SlackService
def message
"#{project_link}: Commit #{commit_link} of #{branch_link} #{ref_type} by #{user_name} #{humanized_status} in #{duration} #{'second'.pluralize(duration)}"
- end
+ end
def format(string)
Slack::Notifier::LinkFormatter.format(string)