Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Fix JRuby binary operator warning (#2352)
Browse files Browse the repository at this point in the history
Fixes the following warning shown by JRuby 9.1.6.0:

> gems/paperclip-5.1.0/lib/paperclip/storage/filesystem.rb:49: warning: `&' after local variable or literal is interpreted as binary operator even though it seems like argument prefix
  • Loading branch information
tute authored Dec 2, 2016
2 parents 62c8130 + eb2c4e0 commit 8c7cb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/storage/filesystem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def flush_writes #:nodoc:
end
end
unless @options[:override_file_permissions] == false
resolved_chmod = (@options[:override_file_permissions] &~ 0111) || (0666 &~ File.umask)
resolved_chmod = (@options[:override_file_permissions] & ~0111) || (0666 & ~File.umask)
FileUtils.chmod( resolved_chmod, path(style_name) )
end
file.rewind
Expand Down

0 comments on commit 8c7cb37

Please sign in to comment.