Skip to content

Commit

Permalink
Use File.open explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jul 22, 2019
1 parent 6497ba4 commit 5b8f8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rake/file_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def egrep(pattern, *options)
matched = 0
each do |fn|
begin
open(fn, "r", *options) do |inf|
File.open(fn, "r", *options) do |inf|
count = 0
inf.each do |line|
count += 1
Expand Down

0 comments on commit 5b8f8fc

Please sign in to comment.