Skip to content

Commit

Permalink
Remove redundant stream.Dispose() call
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Aug 28, 2023
1 parent 38ac9cd commit b7f4f4b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion FMScanner/Core/Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4668,7 +4668,6 @@ private List<string> ReadAllLinesE(Stream stream, long length)
_generalMemoryStream.SetLength((int)length);
_generalMemoryStream.Position = 0;
StreamCopyNoAlloc(stream, _generalMemoryStream, StreamCopyBuffer);
stream.Dispose();
_generalMemoryStream.Position = 0;
Encoding encoding = _fileEncoding.DetectFileEncoding(_generalMemoryStream) ?? Encoding.GetEncoding(1252);
_generalMemoryStream.Position = 0;
Expand Down

0 comments on commit b7f4f4b

Please sign in to comment.