refactor code based on feedback
This commit is contained in:
parent
2dc2bad623
commit
0abd85f919
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ module API
|
||||||
success Entities::ProjectImportStatus
|
success Entities::ProjectImportStatus
|
||||||
end
|
end
|
||||||
post 'import' do
|
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')
|
Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42437')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue