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
path: root/lib
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-02-14 16:59:11 +0300
committerJames Lopez <james@jameslopez.es>2018-02-14 16:59:11 +0300
commit0abd85f919053efa8a03add9ae43ce9ea2d02ae5 (patch)
tree9fe05fc39b53efab92c81e4818633cb36ff45265 /lib
parent2dc2bad6233e1e74c74c49af4be838e0a39dcd53 (diff)
refactor code based on feedback
Diffstat (limited to 'lib')
-rw-r--r--lib/api/project_import.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/project_import.rb b/lib/api/project_import.rb
index 88fe1d2b5f5..a6da9b90fe3 100644
--- a/lib/api/project_import.rb
+++ b/lib/api/project_import.rb
@@ -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')