Fix compilation of ext. tools

This commit is contained in:
YoshiRulz 2022-07-25 11:16:42 +10:00
parent 8dcea24703
commit ea5e8b70d3
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ namespace BizHawk.Experiment.AutoGenConfig
{
public ApiContainer? _apiContainer { get; set; }
private ApiContainer APIs => _apiContainer ?? throw new NullReferenceException();
private ApiContainer APIs => _apiContainer!;
private static readonly WeakReference<ConfigEditorCache> _cache = new WeakReference<ConfigEditorCache>(new ConfigEditorCache(typeof(Config)));

View File

@ -36,7 +36,7 @@ namespace HelloWorld
/// </remarks>
public ApiContainer? _apiContainer { get; set; }
private ApiContainer APIs => _apiContainer ?? throw new NullReferenceException();
private ApiContainer APIs => _apiContainer!;
/// <remarks>
/// An example of a hack. Hacks should be your last resort because they're prone to break with new releases.