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
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2020-03-26 20:56:41 +0300
committerGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2020-03-26 20:56:41 +0300
commite5121cd2a1ea1df276317fa68765e969a0b21eae (patch)
tree3b9732ce48aab909276c030b9a60d1c12cee2525 /lib/uploaded_file.rb
parent4ee3ab616fc8b89b957b531294b67097941e49f6 (diff)
parent63745c932cc8bc81fc2b2d30e9a171e346f4b969 (diff)
Merge remote-tracking branch 'dev/12-9-stable' into 12-9-stable
Diffstat (limited to 'lib/uploaded_file.rb')
-rw-r--r--lib/uploaded_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uploaded_file.rb b/lib/uploaded_file.rb
index 424db653fb8..f8d596b5d14 100644
--- a/lib/uploaded_file.rb
+++ b/lib/uploaded_file.rb
@@ -48,7 +48,7 @@ class UploadedFile
return if path.blank? && remote_id.blank?
file_path = nil
- if path
+ if path.present?
file_path = File.realpath(path)
paths = Array(upload_paths) << Dir.tmpdir