Skip to content

Commit

Permalink
refactor: Simplified to PipeStreamWrapper.CanRead.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Dec 13, 2023
1 parent a8445c3 commit f05f804
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/H.Pipes/IO/PipeStreamWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public sealed class PipeStreamWrapper : IDisposable
/// </returns>
public bool CanWrite => BaseStream.CanWrite;

internal PipeStream BaseStream { get; }
private PipeStream BaseStream { get; }
private PipeStreamReader Reader { get; }
private PipeStreamWriter Writer { get; }

Expand Down
2 changes: 1 addition & 1 deletion src/libs/H.Pipes/PipeConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void Start()

ReadWorker = new TaskWorker(async cancellationToken =>
{
if (!PipeStreamWrapper.BaseStream.CanRead)
if (!PipeStreamWrapper.CanRead)
{
return;
}
Expand Down

0 comments on commit f05f804

Please sign in to comment.