diff --git a/msgpack-sharp/MsgPackIO.cs b/msgpack-sharp/MsgPackIO.cs index abba18e..415341b 100644 --- a/msgpack-sharp/MsgPackIO.cs +++ b/msgpack-sharp/MsgPackIO.cs @@ -239,15 +239,7 @@ internal static ulong ReadMsgPackULong(BinaryReader reader) internal static long ReadMsgPackInt(BinaryReader reader) { - byte header = 0; - try - { - header = reader.ReadByte(); - } - catch(EndOfStreamException ex) - { - Console.Out.WriteLine(ex); - } + byte header = reader.ReadByte(); long result = 0; if (header < MsgPackConstants.FixedInteger.POSITIVE_MAX) {