aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-03-11 17:41:20 -0500
committerJack Nagel2013-03-11 17:41:21 -0500
commitac22d6ccbfbfe447fc19073874d7c29903dfd48f (patch)
treed7a48b2c26e4b25d228dce4fb05c8ba5dd8c451b
parent7ab1de367c9a66f2e7945599492180870d107cc9 (diff)
downloadhomebrew-ac22d6ccbfbfe447fc19073874d7c29903dfd48f.tar.bz2
mach.rb: remove incorrect comment
IO#read does not raise EOFError, it just returns an empty string for each call after it consumes the underlying file or stream. This module is going to be refactored and the begin/rescue is going to be removed anyway.
-rw-r--r--Library/Homebrew/mach.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/Library/Homebrew/mach.rb b/Library/Homebrew/mach.rb
index 537b2588e..44726ac5f 100644
--- a/Library/Homebrew/mach.rb
+++ b/Library/Homebrew/mach.rb
@@ -66,9 +66,6 @@ module MachO
end
mach_data
rescue
- # read() will raise if it sees EOF, which should only happen if the
- # file is < 8 bytes. Otherwise, we raise if the file is not a Mach-O
- # binary. In both cases, we want to return an empty array.
[]
end
end