From 42546d033e96c935e3438e01313604a4e52d0725 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Thu, 25 Nov 2021 16:13:32 +0100 Subject: [PATCH] nits --- src/ImageSharp/Common/Helpers/DebugGuard.cs | 2 +- .../Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/Common/Helpers/DebugGuard.cs b/src/ImageSharp/Common/Helpers/DebugGuard.cs index 43622066c..23b712c52 100644 --- a/src/ImageSharp/Common/Helpers/DebugGuard.cs +++ b/src/ImageSharp/Common/Helpers/DebugGuard.cs @@ -27,7 +27,7 @@ namespace SixLabors } /// - /// Verifies whether a specific condition is met, throwing an exception if it's false. + /// Verifies whether a condition (indicating disposed state) is met, throwing an ObjectDisposedException if it's false. /// /// Whether the object is disposed. /// The name of the object. diff --git a/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs b/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs index 5027d94b4..21673215a 100644 --- a/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs +++ b/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs @@ -59,7 +59,7 @@ namespace SixLabors.ImageSharp.Memory.Internals } } - private class LifetimeGuard : RefCountedLifetimeGuard + private sealed class LifetimeGuard : RefCountedLifetimeGuard { private byte[] array;