diff options
author | James Lopez <james@jameslopez.es> | 2016-11-04 17:24:54 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:57 +0100 |
commit | b4bb33c5b7f30dedbb56f4b9f7dbc9fd58d4bdb9 (patch) | |
tree | 6dedd503c4ca36aece5880fa77989990e72830c9 | |
parent | 449a9fb1f16ff8b0d4328c4ebd26018dcd6fce36 (diff) | |
download | gitlab-ce-b4bb33c5b7f30dedbb56f4b9f7dbc9fd58d4bdb9.tar.gz |
fix rubocop warning
-rw-r--r-- | lib/gitlab/light_url_builder.rb | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/lib/gitlab/light_url_builder.rb b/lib/gitlab/light_url_builder.rb index b33fad12eec..0b589217273 100644 --- a/lib/gitlab/light_url_builder.rb +++ b/lib/gitlab/light_url_builder.rb @@ -16,24 +16,24 @@ module Gitlab end def url - #TODO refactor this + # TODO refactor this case @entity - when :issue - issue_url - when :user - user_url(@id) - when :user_avatar_url - user_avatar_url - when :commit_url - commit_url - when :merge_request - mr_url - when :build_url - namespace_project_build_url(@project.namespace, @project, @id) - when :branch_url - branch_url - else - raise NotImplementedError.new("No URL builder defined for #{object.class}") + when :issue + issue_url + when :user + user_url(@id) + when :user_avatar_url + user_avatar_url + when :commit_url + commit_url + when :merge_request + mr_url + when :build_url + namespace_project_build_url(@project.namespace, @project, @id) + when :branch_url + branch_url + else + raise NotImplementedError.new("No URL builder defined for #{object.class}") end end @@ -67,7 +67,6 @@ module Gitlab }.merge!(@opts)) end - def pipeline_url namespace_project_build_url({ namespace_id: @project.namespace, |