From 6197eae3d4eefd621c857773020c0c2a05e1674b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 11 Mar 2013 17:41:20 -0500 Subject: [PATCH] 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. --- Library/Homebrew/mach.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/Library/Homebrew/mach.rb b/Library/Homebrew/mach.rb index 537b2588ef..44726ac5fd 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