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:
Diffstat (limited to 'lib/tasks/grape.rake')
-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