From 0f0ae5f25405c3454525f59f7d38b8559eedcf2f Mon Sep 17 00:00:00 2001 From: Scott Bilas Date: Sat, 11 Nov 2023 21:33:54 +0100 Subject: [PATCH] Fix/hack build to be clean --- src/Flog.Cli/Screen.cs | 3 +-- src/MachMode.Cli/ConfigModel.cs | 6 +++--- src/MachMode.Cli/MachModeCli-Tests.csproj | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Flog.Cli/Screen.cs b/src/Flog.Cli/Screen.cs index 8f71652..257f026 100644 --- a/src/Flog.Cli/Screen.cs +++ b/src/Flog.Cli/Screen.cs @@ -80,8 +80,7 @@ async void Wrap(Action action) public void Dispose() { - if (_disposed.IsCancellationRequested) - throw new ObjectDisposedException("Instance already disposed"); + ObjectDisposedException.ThrowIf(_disposed.IsCancellationRequested, this); _disposed.Cancel(); // don't dispose, let finalizer get it /* https://github.com/gdamore/tcell/v2/tscreen.go diff --git a/src/MachMode.Cli/ConfigModel.cs b/src/MachMode.Cli/ConfigModel.cs index df296e4..4cc3781 100644 --- a/src/MachMode.Cli/ConfigModel.cs +++ b/src/MachMode.Cli/ConfigModel.cs @@ -1,16 +1,16 @@ class ConfigModel { - public Location[] Locations; + //public Location[] Locations; } class Location { - public string Name; + //public string Name; // TODO: add ways of detecting location (note that they are not necessarily mutually exclusive) } class Capability { - public string Name; + //public string Name; } diff --git a/src/MachMode.Cli/MachModeCli-Tests.csproj b/src/MachMode.Cli/MachModeCli-Tests.csproj index d350f83..838bb0a 100644 --- a/src/MachMode.Cli/MachModeCli-Tests.csproj +++ b/src/MachMode.Cli/MachModeCli-Tests.csproj @@ -7,7 +7,7 @@ - +