Cleaned up a minor thing.

This commit is contained in:
Max G
2019-06-08 00:18:00 -05:00
committed by GitHub
parent 47112242e7
commit 5b85043194

View File

@@ -218,16 +218,13 @@ namespace RobloxFiles.BinaryFormat
// Write all of the chunks. // Write all of the chunks.
foreach (BinaryRobloxFileChunk chunk in Chunks) foreach (BinaryRobloxFileChunk chunk in Chunks)
{ {
byte[] chunkType = Encoding.ASCII.GetBytes(chunk.ChunkType);
if (chunk.HasWriteBuffer) if (chunk.HasWriteBuffer)
{ {
byte[] writeBuffer = chunk.WriteBuffer; byte[] writeBuffer = chunk.WriteBuffer;
writer.Write(writeBuffer); writer.Write(writeBuffer);
} }
} }
} }
} }
} }
} }