Commit 0abd85f9 authored by James Lopez's avatar James Lopez

refactor code based on feedback

parent 2dc2bad6
......@@ -31,7 +31,7 @@ module API
success Entities::ProjectImportStatus
end
post 'import' do
render_api_error!('The file is invalid', 400) unless file_is_valid?
validate_file!
Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42437')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment