Skip to content
Snippets Groups Projects
Unverified Commit 0abd85f9 authored by James Lopez's avatar James Lopez
Browse files

refactor code based on feedback

parent 2dc2bad6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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')
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment