mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Use preferred braces style.
This commit is contained in:
@@ -122,21 +122,19 @@ namespace DiscImageChef
|
||||
if(numBytes == 1)
|
||||
{
|
||||
num2 = BaseStream.ReadByte();
|
||||
if(num2 == -1) { throw new EndOfStreamException("Attempted to read past the end of the stream."); }
|
||||
if(num2 == -1) throw new EndOfStreamException("Attempted to read past the end of the stream.");
|
||||
|
||||
buffer[0] = (byte)num2;
|
||||
}
|
||||
else
|
||||
{
|
||||
do
|
||||
{
|
||||
num2 = BaseStream.Read(buffer, offset, numBytes - offset);
|
||||
if(num2 == 0) { throw new EndOfStreamException("Attempted to read past the end of the stream."); }
|
||||
if(num2 == 0) throw new EndOfStreamException("Attempted to read past the end of the stream.");
|
||||
|
||||
offset += num2;
|
||||
}
|
||||
while(offset < numBytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user