Commit 0df22af
committed
Clean up unnessary rethrow
`try{_=task.Result;}catch(AggregateException ex){ExceptionDispatchInfo.Capture(ex.InnerException).Throw();/*unreachable*/throw;}` => `task.GetAwaiter().GetResult()`, the latter one will not wrap Exception as AggregateException.1 parent 331ea1e commit 0df22af
1 file changed
+2
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
| 962 | + | |
971 | 963 | | |
972 | 964 | | |
973 | 965 | | |
| |||
1051 | 1043 | | |
1052 | 1044 | | |
1053 | 1045 | | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
| 1046 | + | |
1063 | 1047 | | |
1064 | 1048 | | |
1065 | 1049 | | |
| |||
0 commit comments