Fix Style/SlicingWithRange cop (#25923)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2023-07-12 10:03:06 +02:00
1 parent 658742b3cd
commit b8b2470cf8
12 files changed
+13 -28

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ module ActiveRecord
if flatten
yield record[1]
else
yield record[1..-1]
yield record[1..]
end
end