aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-11 01:45:36 -0500
committerJack Nagel2014-10-11 01:45:36 -0500
commit977a2ceae3df167149f7be85b07638984ba11a60 (patch)
treee98f30b95f34bb9cf447f806d86a877e86b1fad7 /Library
parent3d96dad25cdca41ced3c80d8a3b0a29a0d16d98c (diff)
downloadbrew-977a2ceae3df167149f7be85b07638984ba11a60.tar.bz2
Revert "Handle read(n) returning nil"
This reverts commit 578cb637594d32b86322be29205329d700ad75ca.
Diffstat (limited to 'Library')
-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|