Browse Source

Remove unneccessary guard

pull/2352/head
James Jackson-South 3 years ago
parent
commit
ffd5c360a4
  1. 2
      src/ImageSharp/IO/ChunkedMemoryStream.cs

2
src/ImageSharp/IO/ChunkedMemoryStream.cs

@ -47,8 +47,6 @@ internal sealed class ChunkedMemoryStream : Stream
/// <param name="allocator">The memory allocator.</param> /// <param name="allocator">The memory allocator.</param>
public ChunkedMemoryStream(MemoryAllocator allocator) public ChunkedMemoryStream(MemoryAllocator allocator)
{ {
Guard.NotNull(allocator, nameof(allocator));
this.allocatorCapacity = allocator.GetBufferCapacityInBytes(); this.allocatorCapacity = allocator.GetBufferCapacityInBytes();
this.allocator = allocator; this.allocator = allocator;
} }

Loading…
Cancel
Save