Skip to content

Commit 9482246

Browse files
committed
prev commit.
1 parent 6dbd0e1 commit 9482246

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

BusinessEntities/Indicators/IndicatorHelper.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,14 @@ public static IIndicatorValue Process(this IIndicator indicator, object inputVal
237237
/// <param name="indicatorType"><see cref="IComplexIndicator"/></param>
238238
/// <returns>Type.</returns>
239239
public static Type GetDefaultIndicatorOutput(this Type indicatorType)
240-
=> indicatorType.CheckOnNull(nameof(indicatorType)).Is<IComplexIndicator>() ? typeof(ComplexIndicatorValue) : typeof(DecimalIndicatorValue);
240+
{
241+
ArgumentNullException.ThrowIfNull(indicatorType);
242+
243+
if (indicatorType.Is<IComplexIndicator>())
244+
throw new ArgumentException(LocalizedStrings.InvalidValue, nameof(indicatorType));
245+
246+
return typeof(DecimalIndicatorValue);
247+
}
241248

242249
/// <summary>
243250
/// Get value type for specified indicator.

0 commit comments

Comments
 (0)