Skip to content

Commit

Permalink
Merge pull request #2140 from eritiro/avoid-unnecesary-head-request
Browse files Browse the repository at this point in the history
Remove potentially redundant HEAD request
  • Loading branch information
mshibuya authored Sep 30, 2017
2 parents 5a4e751 + bffbaaf commit 72f123a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave/storage/fog.rb
Original file line number Diff line number Diff line change
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 72f123a

Please # to comment.