diff --git a/Directory.Packages.props b/Directory.Packages.props index 3d57c73d3..836970b60 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,6 @@ - @@ -25,7 +24,7 @@ - + diff --git a/Terminal.Gui.Analyzers.Tests/Terminal.Gui.Analyzers.Tests.csproj b/Terminal.Gui.Analyzers.Tests/Terminal.Gui.Analyzers.Tests.csproj index a1d8f9a02..37e739d3d 100644 --- a/Terminal.Gui.Analyzers.Tests/Terminal.Gui.Analyzers.Tests.csproj +++ b/Terminal.Gui.Analyzers.Tests/Terminal.Gui.Analyzers.Tests.csproj @@ -15,7 +15,6 @@ - diff --git a/Terminal.Gui/Drivers/NetDriver/NetEvents.cs b/Terminal.Gui/Drivers/NetDriver/NetEvents.cs index 65e2faa2d..2dea3a509 100644 --- a/Terminal.Gui/Drivers/NetDriver/NetEvents.cs +++ b/Terminal.Gui/Drivers/NetDriver/NetEvents.cs @@ -50,7 +50,7 @@ internal class NetEvents : IDisposable public InputResult? DequeueInput () { - while (!_netEventsDisposed.Token.IsCancellationRequested) + while (_netEventsDisposed is { Token.IsCancellationRequested: false }) { _winChange.Set (); diff --git a/Terminal.Gui/Drivers/WindowsDriver/WindowsConsole.cs b/Terminal.Gui/Drivers/WindowsDriver/WindowsConsole.cs index 6153df249..445ba1410 100644 --- a/Terminal.Gui/Drivers/WindowsDriver/WindowsConsole.cs +++ b/Terminal.Gui/Drivers/WindowsDriver/WindowsConsole.cs @@ -62,7 +62,7 @@ internal partial class WindowsConsole InputRecord inputRecord = default; uint numberEventsRead = 0; - while (!_inputReadyCancellationTokenSource!.IsCancellationRequested) + while (_inputReadyCancellationTokenSource is { IsCancellationRequested: false }) { try {