Skip to content

Commit 1153f44

Browse files
committed
Fix build warning - second attempt
1 parent f9f864e commit 1153f44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FollowingFileStream/FollowingFileStream.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,10 @@ private bool IsFileLockedForWriting()
442442
{
443443
try
444444
{
445-
using var stream = new FileStream(this.fileStream.Name, FileMode.Open, FileAccess.Write, FileShare.Read);
445+
using (new FileStream(this.fileStream.Name, FileMode.Open, FileAccess.Write, FileShare.Read))
446+
{
447+
// Nothing to do
448+
}
446449
}
447450
catch (IOException)
448451
{

0 commit comments

Comments
 (0)