It was never used

This commit is contained in:
Lin Jen-Shin 2016-07-29 17:58:26 +08:00
parent d41e83e91a
commit 5fee7ec1a0
1 changed files with 2 additions and 2 deletions

View File

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