Skip to content

Commit a8f6530

Browse files
committed
chore: remove unused FileShare parameter
1 parent 7b08aa6 commit a8f6530

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/System.IO.Abstractions.TestingHelpers/MockFile.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,12 @@ public override Stream Open(string path, FileMode mode, FileAccess access)
380380
}
381381

382382
public override Stream Open(string path, FileMode mode, FileAccess access, FileShare share) =>
383-
OpenInternal(path, mode, access, share, FileOptions.None);
383+
OpenInternal(path, mode, access, FileOptions.None);
384384

385385
private Stream OpenInternal(
386386
string path,
387387
FileMode mode,
388388
FileAccess access,
389-
FileShare share,
390389
FileOptions options)
391390
{
392391
mockFileDataAccessor.PathVerifier.IsLegalAbsoluteOrRelative(path, "path");
@@ -434,7 +433,7 @@ public override StreamReader OpenText(string path)
434433
private Stream OpenWriteInternal(string path, FileOptions options)
435434
{
436435
mockFileDataAccessor.PathVerifier.IsLegalAbsoluteOrRelative(path, "path");
437-
return OpenInternal(path, FileMode.OpenOrCreate, FileAccess.Write, FileShare.None, options);
436+
return OpenInternal(path, FileMode.OpenOrCreate, FileAccess.Write, options);
438437
}
439438

440439
public override byte[] ReadAllBytes(string path)

0 commit comments

Comments
 (0)