Skip to content

Commit

Permalink
removes unused catcherror func
Browse files Browse the repository at this point in the history
  • Loading branch information
cammiida committed Jan 28, 2025
1 parent fd4046e commit 991ff91
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Altinn.App.Core/Features/Signing/SigningService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -541,20 +541,4 @@ SignDocument signDocument
SignDocument = signDocument,
};
}

/// <summary>
/// Catch exceptions from a task and return them as a ServiceResult record with the result.
/// </summary>
private static async Task<ServiceResult<T, Exception>> CatchError<T>(Task<T> task)
{
try
{
var result = await task;
return result;
}
catch (Exception ex)
{
return ex;
}
}
}

0 comments on commit 991ff91

Please sign in to comment.