summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index c7a817877f0..c8cda85b170 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -277,13 +277,7 @@ module API
end
class BasicRef < Grape::Entity
- expose :branch_name, if: lambda { |ref, options| ref[1] } do |ref, options|
- ref[0]
- end
-
- expose :tag_name, if: lambda { |ref, options| !ref[1] } do |ref, options|
- ref[0]
- end
+ expose :type, :name
end
class Branch < Grape::Entity