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.
This commit is contained in:
		
							parent
							
								
									0f9910d352
								
							
						
					
					
						commit
						6197eae3d4
					
				@ -66,9 +66,6 @@ module MachO
 | 
				
			|||||||
      end
 | 
					      end
 | 
				
			||||||
      mach_data
 | 
					      mach_data
 | 
				
			||||||
    rescue
 | 
					    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
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user