Skip to content

Commit

Permalink
Remove potentially redundant HEAD request when checking file presence…
Browse files Browse the repository at this point in the history
… using Fog
  • Loading branch information
eritiro committed Mar 14, 2017
1 parent 1101628 commit bffbaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave/storage/fog.rb
Expand Up @@ -297,7 +297,7 @@ def size
#
# [Boolean] true if file exists or false
def exists?
!!directory.files.head(path)
!!file
end

##
Expand Down

0 comments on commit bffbaaf

Please sign in to comment.