We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c873f2b commit 7733f5aCopy full SHA for 7733f5a
src/main/ruby/truffleruby/core/file.rb
@@ -732,13 +732,8 @@ def self.identical?(orig, copy)
732
733
return false if Primitive.nil?(st_o) || Primitive.nil?(st_c)
734
735
- return false unless st_o.dev == st_c.dev
736
- return false unless st_o.ino == st_c.ino
737
- return false unless st_o.ftype == st_c.ftype
738
- return false unless POSIX.access(orig, Constants::R_OK)
739
- return false unless POSIX.access(copy, Constants::R_OK)
740
-
741
- true
+ st_o.dev == st_c.dev and st_o.ino == st_c.ino and st_o.ftype == st_c.ftype and
+ POSIX.access(orig, Constants::R_OK) && Primitive.as_boolean(POSIX.access(copy, Constants::R_OK))
742
end
743
744
##
0 commit comments