aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/tab.rb2
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