From 0f5e5e54e55c23222f6f934f2c32f212f13a34ae Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 27 Oct 2022 19:33:38 +0700 Subject: Refactoring in Bcpg.Sig --- crypto/src/bcpg/sig/Exportable.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'crypto/src/bcpg/sig/Exportable.cs') diff --git a/crypto/src/bcpg/sig/Exportable.cs b/crypto/src/bcpg/sig/Exportable.cs index 4d030346f..8a9eafe09 100644 --- a/crypto/src/bcpg/sig/Exportable.cs +++ b/crypto/src/bcpg/sig/Exportable.cs @@ -10,17 +10,7 @@ namespace Org.BouncyCastle.Bcpg.Sig { private static byte[] BooleanToByteArray(bool val) { - byte[] data = new byte[1]; - - if (val) - { - data[0] = 1; - return data; - } - else - { - return data; - } + return new byte[1]{ Convert.ToByte(val) }; } public Exportable( -- cgit 1.4.1