aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-10-11 01:45:36 -0500
committerJack Nagel2014-10-11 01:45:36 -0500
commit6684269479a045c5cba2b1c544100a9193dcbbbb (patch)
tree0934c35ed711c762f579156d3219a2f0f41c4383 /Library/Homebrew
parentf8c1116599ac69be6308796cdabdc620dd72f1d0 (diff)
downloadhomebrew-6684269479a045c5cba2b1c544100a9193dcbbbb.tar.bz2
Revert "Handle read(n) returning nil"
This reverts commit 578cb637594d32b86322be29205329d700ad75ca.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/mach.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/mach.rb b/Library/Homebrew/mach.rb
index ff3b76d2d..de38d296b 100644
--- a/Library/Homebrew/mach.rb
+++ b/Library/Homebrew/mach.rb
@@ -60,7 +60,7 @@ module MachO
offsets = []
mach_data = []
- header = (read(8) || "").unpack("N2")
+ header = read(8).unpack("N2")
case header[0]
when 0xcafebabe # universal
header[1].times do |i|