diff --git a/src/System.IO.Abstractions.TestingHelpers/MockFile.cs b/src/System.IO.Abstractions.TestingHelpers/MockFile.cs index 81de2327f..82f5a0269 100644 --- a/src/System.IO.Abstractions.TestingHelpers/MockFile.cs +++ b/src/System.IO.Abstractions.TestingHelpers/MockFile.cs @@ -411,8 +411,6 @@ private Stream OpenInternal( var mockFileData = mockFileDataAccessor.GetFile(path); mockFileData.CheckFileAccess(path, access); - var length = mockFileData.Contents.Length; - return new MockFileStream(mockFileDataAccessor, path, mode, access, options); }