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

Fix JRuby binary operator warning #2352

Merged
merged 2 commits into from
Dec 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 0o for octal literals.
Line is too long. [99/80]

FileUtils.chmod( resolved_chmod, path(style_name) )
end
file.rewind
Expand Down