diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 239820c5f7..708e103463 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