From 8aa83aae9150af20f1d599d6e1fffc016a3f97eb Mon Sep 17 00:00:00 2001 From: John Date: Thu, 11 Jun 2020 15:19:02 +0100 Subject: [PATCH] Inline else expression --- src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs b/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs index 0deb2358..4d50c4bd 100644 --- a/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs @@ -84,11 +84,8 @@ namespace ComputeSharp Unsafe.As(ref Unsafe.Add(ref untypedDest, i * GetPaddedSize())) = Unsafe.Add(ref src, i); } } - else - { - // Directly copy the input span if there is no padding - MemoryHelper.Copy(span, resource.Pointer, offset, count); - } + // Directly copy as there is no padding + else MemoryHelper.Copy(span, resource.Pointer, offset, count); } ///