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

Fix JRuby binary operator warning #2352

merged 2 commits into from
Dec 2, 2016

Conversation

dzsibi
Copy link

@dzsibi dzsibi commented Nov 29, 2016

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

@@ -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]

@tute
Copy link
Contributor

tute commented Dec 1, 2016

Thanks! Can you please rebase against latest master, to check if CI passes? Thanks!

@dzsibi
Copy link
Author

dzsibi commented Dec 2, 2016

Here ya go.

@tute tute merged commit 8c7cb37 into thoughtbot:master Dec 2, 2016
@tute
Copy link
Contributor

tute commented Dec 2, 2016

Excellent, thank you!

@YavorIvanov
Copy link

I just realize that we are still using the gem from the git repo for this fix.
Should we not release 5.1.1 with this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants