From 86b3e22b49624a5c1f2b347e43b36bf463b26aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nv=C3=A1ri=20B=C3=A1lint=20J=C3=B3zsef?= Date: Tue, 29 Nov 2016 14:56:23 +0100 Subject: [PATCH] Fix JRuby binary operator warning --- lib/paperclip/storage/filesystem.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/storage/filesystem.rb b/lib/paperclip/storage/filesystem.rb index 8acf62bb0..5bed9ad03 100644 --- a/lib/paperclip/storage/filesystem.rb +++ b/lib/paperclip/storage/filesystem.rb @@ -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