summaryrefslogtreecommitdiff
path: root/dsa/FireBase/Extensions/TaskExtensions.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-12 21:47:51 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-12 21:47:51 +0200
commit304437b834e8c87687f68333ae67a13ee1377a73 (patch)
tree51dd246568e8a159627d9cb92e99890adb5cbef8 /dsa/FireBase/Extensions/TaskExtensions.cs
parent2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (diff)
Adjust Codestyle
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;
}
}