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 94cbc16 commit 23b2524Copy full SHA for 23b2524
lib/hdf5/file.rb
@@ -28,7 +28,7 @@ def list_entries
28
case FFI::MiV
29
when 10 then HDF5::FFI.H5Literate(@file_id, :H5_INDEX_NAME, :H5_ITER_NATIVE, nil, callback, nil)
30
when 14 then HDF5::FFI.H5Literate2(@file_id, :H5_INDEX_NAME, :H5_ITER_NATIVE, nil, callback, nil)
31
- end < 0 && raise('Failed to iterate over file entries')
+ end.negative? && raise('Failed to iterate over file entries')
32
33
list
34
end
0 commit comments