summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@gitlab.com>2017-02-06 15:45:43 +0000
committerJames Lopez <james@gitlab.com>2017-02-06 15:45:43 +0000
commit94cfd1cc498cc415260821ae4d42d534a5583af3 (patch)
tree182cef77f6cd551b0cde80ab90e4cb662ba6799d
parent76e61aff01cd808ea8ef7d2fd7ff79a5dd691a32 (diff)
downloadgitlab-ce-fix/grape-routes.tar.gz
Update grape.rakefix/grape-routes
-rw-r--r--lib/tasks/grape.rake4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/tasks/grape.rake b/lib/tasks/grape.rake
index f13812cec92..ea2698da606 100644
--- a/lib/tasks/grape.rake
+++ b/lib/tasks/grape.rake
@@ -7,8 +7,6 @@ namespace :grape do
end
def route_description(options)
- if options[:settings][:description]
- options[:settings][:description][:description]
- end || ''
+ options[:settings][:description][:description] if options[:settings][:description]
end
end