Index: Ringtoets/Common/src/Ringtoets.Common.Service/CalculationServiceHelper.cs
===================================================================
diff -u -r12a35732d53e73c149035a212f96d2a0e9604cff -r3d9b418d483c122040e11a7e074d666c64e9d7b5
--- Ringtoets/Common/src/Ringtoets.Common.Service/CalculationServiceHelper.cs (.../CalculationServiceHelper.cs) (revision 12a35732d53e73c149035a212f96d2a0e9604cff)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/CalculationServiceHelper.cs (.../CalculationServiceHelper.cs) (revision 3d9b418d483c122040e11a7e074d666c64e9d7b5)
@@ -60,26 +60,16 @@
/// Method for performing calculations. Error and status information is logged during
/// the execution of the operation.
///
- /// The output type.
/// The name of the calculation.
/// The method used to perform the calculation.
- /// The error message to show when the output is null.
- /// on a successful calculation, null otherwise.
- /// When throws an exception, this will not be catched in this method.
- public static T PerformCalculation(string name, Func calculationFunc, string outputIsNullErrorMessage)
+ /// When throws an exception, this will not be caught in this method.
+ public static void PerformCalculation(string name, Action calculationFunc)
{
LogCalculationBeginTime(name);
try
{
- var output = calculationFunc();
-
- if (output == null)
- {
- LogMessagesAsError(outputIsNullErrorMessage, name);
- }
-
- return output;
+ calculationFunc();
}
finally
{