Skip to content

Commit

Permalink
prefer File.open to Kernel.open
Browse files Browse the repository at this point in the history
as prescribed by Rubocop's security checks
  • Loading branch information
flavorjones committed Aug 6, 2019
1 parent 080b2fe commit a652474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rexical/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def scan_str(str)
def load_file( filename )
@filename = filename
open(filename, "r") do |f|
File.open(filename, "r") do |f|
scan_setup(f.read)
end
end
Expand Down

0 comments on commit a652474

Please sign in to comment.