Add readonly to C# methods and types that don't mutate
Also removes a few unnecessary temp variables
This commit is contained in:
@@ -13,7 +13,7 @@ namespace GodotTools.IdeMessaging.Utils
|
||||
return waitAsyncTask.ContinueWith<IDisposable>(t => wrapper, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private struct SemaphoreSlimWaitReleaseWrapper : IDisposable
|
||||
private readonly struct SemaphoreSlimWaitReleaseWrapper : IDisposable
|
||||
{
|
||||
private readonly SemaphoreSlim semaphoreSlim;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user