* Start working on nullable checks

help me

* Update GlobalConfig.cs

* Finish initial fixup round

* nullability code review
This commit is contained in:
Łukasz Domeradzki
2020-08-22 21:41:01 +02:00
committed by GitHub
parent e5f64ec9dd
commit 9fc1ea65a5
91 changed files with 1996 additions and 2808 deletions

View File

@@ -21,13 +21,12 @@
using System;
using System.Threading;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Helpers {
internal sealed class SemaphoreLock : IDisposable {
private readonly SemaphoreSlim Semaphore;
internal SemaphoreLock([NotNull] SemaphoreSlim semaphore) => Semaphore = semaphore ?? throw new ArgumentNullException(nameof(semaphore));
internal SemaphoreLock(SemaphoreSlim semaphore) => Semaphore = semaphore ?? throw new ArgumentNullException(nameof(semaphore));
public void Dispose() => Semaphore.Release();
}