aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/config.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/reline/config.rb b/lib/reline/config.rb
index eddce36eba..aa65037c67 100644
--- a/lib/reline/config.rb
+++ b/lib/reline/config.rb
@@ -80,9 +80,7 @@ class Reline::Config
if file.respond_to?(:readlines)
lines = file.readlines
else
- File.open(file, 'rt') do |f|
- lines = f.readlines
- end
+ lines = File.readlines(file)
end
rescue Errno::ENOENT
return nil