Skip to content
Browse files

use File.readlines instead of IO.readlines

  • Loading branch information...
1 parent 4161841 commit 544dc4b092d63d3df588ef61274cc32ad1376b02 @geemus geemus committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/netrc.rb
View
2 lib/netrc.rb
@@ -17,7 +17,7 @@ def self.read(path=default_path)
if perm != 0600 && !(WINDOWS)
raise Error, "Permission bits for '#{path}' should be 0600, but are "+perm.to_s(8)
end
- new(path, parse(lex(IO.readlines(path))))
+ new(path, parse(lex(File.readlines(path))))
rescue Errno::ENOENT
new(path, parse(lex([])))
end

0 comments on commit 544dc4b

Please sign in to comment.
Something went wrong with that request. Please try again.