Commit 39396bdf authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Apply review suggestion

parent e553a046
...@@ -52,7 +52,7 @@ class Import::GitlabProjectsController < Import::BaseController ...@@ -52,7 +52,7 @@ class Import::GitlabProjectsController < Import::BaseController
# https://gitlab.com/gitlab-org/gitlab-workhorse/-/merge_requests/470 # https://gitlab.com/gitlab-org/gitlab-workhorse/-/merge_requests/470
# is released and GITLAB_WORKHORSE_VERSION is updated accordingly. # is released and GITLAB_WORKHORSE_VERSION is updated accordingly.
if with_workhorse_upload_acceleration? if with_workhorse_upload_acceleration?
return false unless project_params[:file] return false unless project_params[:file].is_a?(::UploadedFile)
else else
return false unless project_params[:file] && project_params[:file].respond_to?(:read) return false unless project_params[:file] && project_params[:file].respond_to?(:read)
end end
......
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