fix exception handling

This commit is contained in:
Miha Kralj
2024-11-05 07:42:03 -08:00
parent c5b583cd0d
commit e934b424c2
+1 -3
View File
@@ -41,9 +41,7 @@ public sealed class Efi : AbstractBase
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Efi(int period = DefaultPeriod)
{
if (period < 1)
throw new ArgumentOutOfRangeException(nameof(period));
ArgumentOutOfRangeException.ThrowIfLessThan(period, 1);
_ema = new(period);
WarmupPeriod = period + 1;
Name = $"EFI({period})";