Skip to content

Commit 23b2524

Browse files
committed
rubocop auto correct
1 parent 94cbc16 commit 23b2524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/hdf5/file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def list_entries
2828
case FFI::MiV
2929
when 10 then HDF5::FFI.H5Literate(@file_id, :H5_INDEX_NAME, :H5_ITER_NATIVE, nil, callback, nil)
3030
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')
31+
end.negative? && raise('Failed to iterate over file entries')
3232

3333
list
3434
end

0 commit comments

Comments
 (0)