From ffd5c360a4e466b98d5dfb8198c45648ca060916 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Thu, 9 Feb 2023 20:57:58 +1000 Subject: [PATCH] Remove unneccessary guard --- src/ImageSharp/IO/ChunkedMemoryStream.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ImageSharp/IO/ChunkedMemoryStream.cs b/src/ImageSharp/IO/ChunkedMemoryStream.cs index 2e088397a..da52f7ca8 100644 --- a/src/ImageSharp/IO/ChunkedMemoryStream.cs +++ b/src/ImageSharp/IO/ChunkedMemoryStream.cs @@ -47,8 +47,6 @@ internal sealed class ChunkedMemoryStream : Stream /// The memory allocator. public ChunkedMemoryStream(MemoryAllocator allocator) { - Guard.NotNull(allocator, nameof(allocator)); - this.allocatorCapacity = allocator.GetBufferCapacityInBytes(); this.allocator = allocator; }