From e71fe27c302d36e6355d9da12f3d9ec51540825a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 27 Jan 2023 01:58:23 +0700 Subject: Misc. cleanup after bc-fips-csharp updates --- crypto/src/math/ec/ECPoint.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crypto/src/math/ec/ECPoint.cs') diff --git a/crypto/src/math/ec/ECPoint.cs b/crypto/src/math/ec/ECPoint.cs index 1329ea0d0..4607c8cfe 100644 --- a/crypto/src/math/ec/ECPoint.cs +++ b/crypto/src/math/ec/ECPoint.cs @@ -487,11 +487,7 @@ namespace Org.BouncyCastle.Math.EC public PreCompInfo Precompute(PreCompInfo existing) { - ValidityPreCompInfo info = existing as ValidityPreCompInfo; - if (info == null) - { - info = new ValidityPreCompInfo(); - } + ValidityPreCompInfo info = existing as ValidityPreCompInfo ?? new ValidityPreCompInfo(); if (info.HasFailed()) return info; -- cgit 1.4.1