Commit b4bb33c5 authored by James Lopez's avatar James Lopez

fix rubocop warning

parent 449a9fb1
...@@ -16,24 +16,24 @@ module Gitlab ...@@ -16,24 +16,24 @@ module Gitlab
end end
def url def url
#TODO refactor this # TODO refactor this
case @entity case @entity
when :issue when :issue
issue_url issue_url
when :user when :user
user_url(@id) user_url(@id)
when :user_avatar_url when :user_avatar_url
user_avatar_url user_avatar_url
when :commit_url when :commit_url
commit_url commit_url
when :merge_request when :merge_request
mr_url mr_url
when :build_url when :build_url
namespace_project_build_url(@project.namespace, @project, @id) namespace_project_build_url(@project.namespace, @project, @id)
when :branch_url when :branch_url
branch_url branch_url
else else
raise NotImplementedError.new("No URL builder defined for #{object.class}") raise NotImplementedError.new("No URL builder defined for #{object.class}")
end end
end end
...@@ -67,7 +67,6 @@ module Gitlab ...@@ -67,7 +67,6 @@ module Gitlab
}.merge!(@opts)) }.merge!(@opts))
end end
def pipeline_url def pipeline_url
namespace_project_build_url({ namespace_project_build_url({
namespace_id: @project.namespace, namespace_id: @project.namespace,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment