Skip to content

Commit ae7eda6

Browse files
committed
Fix Rubocop warnings for Primitive.object_kind_of? manually
1 parent 9daa25f commit ae7eda6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/posix.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def self.attach_function_eagerly(native_name, argument_types, return_type,
146146
end
147147

148148
if return_type == :string
149-
if result.nil? # must not be Primitive.nil?
149+
if result.nil? # rubocop:disable TruffleRuby/ReplaceWithPrimitiveNil
150150
result = nil
151151
else
152152
ptr = Truffle::FFI::Pointer.new(Truffle::Interop.as_pointer(result))

0 commit comments

Comments
 (0)