summaryrefslogtreecommitdiff
path: root/dsa/FireBase/Extensions/TaskExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'dsa/FireBase/Extensions/TaskExtensions.cs')
-rw-r--r--dsa/FireBase/Extensions/TaskExtensions.cs15
1 files changed, 5 insertions, 10 deletions
diff --git a/dsa/FireBase/Extensions/TaskExtensions.cs b/dsa/FireBase/Extensions/TaskExtensions.cs
index c955b3a..68d4538 100644
--- a/dsa/FireBase/Extensions/TaskExtensions.cs
+++ b/dsa/FireBase/Extensions/TaskExtensions.cs
@@ -1,21 +1,16 @@
using System;
using System.Threading.Tasks;
-namespace Firebase.Database.Extensions
-{
- public static class TaskExtensions
- {
+namespace Firebase.Database.Extensions {
+ public static class TaskExtensions {
/// <summary>
/// Instead of unwrapping <see cref="AggregateException" /> it throws it as it is.
/// </summary>
- public static async Task WithAggregateException(this Task source)
- {
- try
- {
+ public static async Task WithAggregateException(this Task source) {
+ try {
await source.ConfigureAwait(false);
}
- catch (Exception ex)
- {
+ catch (Exception ex) {
throw source.Exception ?? ex;
}
}