diff options
| author | Jack Nagel | 2013-10-23 23:22:28 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-10-23 23:24:42 -0500 |
| commit | a8fe03f72bc2454b5cccca4f751da21e09c350c6 (patch) | |
| tree | 4b90f4d245e628b2bedb334e525dc038e1a513a2 /Library/Homebrew/tab.rb | |
| parent | 3716dae0ced97b9972f26dac297bafc7cbbded28 (diff) | |
| download | brew-a8fe03f72bc2454b5cccca4f751da21e09c350c6.tar.bz2 | |
Tab: ensure file is closed after reading
Diffstat (limited to 'Library/Homebrew/tab.rb')
| -rw-r--r-- | Library/Homebrew/tab.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 239820c5f..708e10346 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -29,7 +29,7 @@ class Tab < OpenStruct end def self.from_file path - tab = Tab.new Utils::JSON.load(open(path).read) + tab = Tab.new Utils::JSON.load(File.read(path)) tab.tabfile = path tab end |
