Skip to content

Commit 7b11e68

Browse files
DharshanBJbgavrilMS
authored andcommitted
update
1 parent 00d4537 commit 7b11e68

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/client/Microsoft.Identity.Client.Desktop/WebView2WebUi/WebView2WebUi.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,6 @@ await Task.Factory.StartNew(
136136
catch (AggregateException ae)
137137
{
138138
requestContext.Logger.ErrorPii(ae.InnerException);
139-
#if WINUI3
140-
Exception innerException = ae.InnerExceptions[0];
141-
142-
if (innerException is AggregateException exception)
143-
{
144-
innerException = exception.InnerExceptions[0];
145-
}
146-
147-
throw innerException;
148-
#else
149139
// Any exception thrown as a result of running task will cause AggregateException to be thrown with
150140
// actual exception as inner.
151141
Exception innerException = ae.InnerExceptions[0];
@@ -157,7 +147,6 @@ await Task.Factory.StartNew(
157147
}
158148

159149
throw innerException;
160-
#endif
161150
}
162151
}
163152
}

0 commit comments

Comments
 (0)