summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-03-01 19:43:10 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2018-03-28 13:57:40 +0200
commit2ed1d5418b61f09e27173b364b9ad5f064a07823 (patch)
tree2ab69c6377e81d14d6ad233aed40ad9fc2e6c7b2 /app/presenters
parent1dde609ca6b130aa0a3d39e929edee7e770e62fc (diff)
downloadgitlab-ce-2ed1d5418b61f09e27173b364b9ad5f064a07823.tar.gz
Fix static analysis offences
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/ci/build_metadata_presenter.rb4
-rw-r--r--app/presenters/ci/build_presenter.rb1
2 files changed, 1 insertions, 4 deletions
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?