File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
src/ResourceManager/Network/Commands.Network/Common Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -199,17 +199,10 @@ public async Task<AzureOperationResponse<string>> GeneratevpnclientpackageWithHt
199
199
{
200
200
if ( DateTime . UtcNow > giveUpAt )
201
201
{
202
- if ( ! string . IsNullOrEmpty ( newHttpResponse . Content . ReadAsStringAsync ( ) . Result ) )
203
- {
204
- result . Body = newHttpResponse . Content . ReadAsStringAsync ( ) . Result ;
205
- }
206
- else
207
- {
208
- string newResponseContent = await newHttpResponse . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
209
- throw new Exception ( string . Format ( "Get-AzureRmVpnClientPackage Operation returned an invalid status code '{0}' with Exception:{1} while retrieving " +
210
- "the Vpnclient PackageUrl!" ,
211
- newHttpResponse . StatusCode , string . IsNullOrEmpty ( newResponseContent ) ? "NotAvailable" : newResponseContent ) ) ;
212
- }
202
+ string newResponseContent = await newHttpResponse . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
203
+
204
+ throw new Exception ( string . Format ( "Get-AzureRmVpnClientPackage Operation returned an invalid status code '{0}' with Exception:{1} while retrieving " +
205
+ "the Vpnclient PackageUrl!" , newHttpResponse . StatusCode , string . IsNullOrEmpty ( newResponseContent ) ? "NotAvailable" : newResponseContent ) ) ;
213
206
}
214
207
else
215
208
{
You can’t perform that action at this time.
0 commit comments