Skip to content

Commit

Permalink
Prefer to use File.foreach instead of IO.foreach
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and kou committed Feb 28, 2023
1 parent 8168233 commit b83f03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/fiddle/win32/libffi-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
end
end

IO.foreach("#{srcdir}/configure.ac") do |line|
File.foreach("#{srcdir}/configure.ac") do |line|
if /^AC_INIT\((.*)\)/ =~ line
version = $1.split(/,\s*/)[1]
version.gsub!(/\A\[|\]\z/, '')
Expand Down

0 comments on commit b83f03d

Please sign in to comment.