summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-04-03 16:58:56 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2018-04-04 16:11:17 +0200
commit11204398fbbd044ca587bb1b082ffbc1eaac2738 (patch)
treea607d1b4e1bf09ef98b18ee66a94a4ded7af993a /app/serializers
parent964933c9638c7d039a2843375d76c76c0b2cf25e (diff)
downloadgitlab-ce-11204398fbbd044ca587bb1b082ffbc1eaac2738.tar.gz
Fix sidebar_details_block.vue and simplify build_metadata_entity.rb44922-fix-build-metadata-creation
Diffstat (limited to 'app/serializers')
-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