From 2ed1d5418b61f09e27173b364b9ad5f064a07823 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Thu, 1 Mar 2018 19:43:10 +0100 Subject: Fix static analysis offences --- app/presenters/ci/build_metadata_presenter.rb | 4 +--- app/presenters/ci/build_presenter.rb | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'app/presenters') diff --git a/app/presenters/ci/build_metadata_presenter.rb b/app/presenters/ci/build_metadata_presenter.rb index e80eb19ea19..5048f967ea8 100644 --- a/app/presenters/ci/build_metadata_presenter.rb +++ b/app/presenters/ci/build_metadata_presenter.rb @@ -1,6 +1,5 @@ module Ci class BuildMetadataPresenter < Gitlab::View::Presenter::Delegated - TIMEOUT_SOURCES = { unknown_timeout_source: nil, project_timeout_source: 'project', @@ -13,8 +12,7 @@ module Ci return unless metadata.timeout_source? TIMEOUT_SOURCES[metadata.timeout_source.to_sym] || - metadata.timeout_source + metadata.timeout_source end - end end diff --git a/app/presenters/ci/build_presenter.rb b/app/presenters/ci/build_presenter.rb index 9345e5069bc..255475e1fe6 100644 --- a/app/presenters/ci/build_presenter.rb +++ b/app/presenters/ci/build_presenter.rb @@ -1,6 +1,5 @@ module Ci class BuildPresenter < Gitlab::View::Presenter::Delegated - presents :build def erased_by_user? -- cgit v1.2.1