Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-04-03 17:58:56 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2018-04-04 17:11:17 +0300
commit11204398fbbd044ca587bb1b082ffbc1eaac2738 (patch)
treea607d1b4e1bf09ef98b18ee66a94a4ded7af993a /app/serializers/build_metadata_entity.rb
parent964933c9638c7d039a2843375d76c76c0b2cf25e (diff)
Fix sidebar_details_block.vue and simplify build_metadata_entity.rb
Diffstat (limited to 'app/serializers/build_metadata_entity.rb')
-rw-r--r--app/serializers/build_metadata_entity.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/serializers/build_metadata_entity.rb b/app/serializers/build_metadata_entity.rb
index 39f429aa6c3..f16f3badffa 100644
--- a/app/serializers/build_metadata_entity.rb
+++ b/app/serializers/build_metadata_entity.rb
@@ -1,8 +1,5 @@
class BuildMetadataEntity < Grape::Entity
- expose :timeout_human_readable do |metadata|
- metadata.timeout_human_readable unless metadata.timeout.nil?
- end
-
+ expose :timeout_human_readable
expose :timeout_source do |metadata|
metadata.present.timeout_source
end