Skip to content

Commit 277f57f

Browse files
committed
remove extra code
1 parent f4791ec commit 277f57f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Common/Commands.Common.Graph.RBAC/ActiveDirectory/ActiveDirectoryBaseCmdlet.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,6 @@ private void HandleException(Exception exception)
7575
}
7676
}
7777

78-
private Exception ParseResponse(GraphErrorException graphEx) {
79-
int exceptionMessageIndex = graphEx.Response.Content.IndexOf("\"value\":", StringComparison.CurrentCultureIgnoreCase);
80-
if (exceptionMessageIndex > 0)
81-
{
82-
string substring = graphEx.Response.Content.Substring(exceptionMessageIndex+9);
83-
// the start index is added 9, so as to remove the delimiter \"value\":\
84-
string exceptionDetails = substring.Substring(0,substring.IndexOf("\"}"));
85-
return new Exception(exceptionDetails);
86-
}
87-
return null;
88-
}
8978

9079
private Exception ParseResponse(GraphErrorException graphEx) {
9180
int exceptionMessageIndex = graphEx.Response.Content.IndexOf("\"value\":", StringComparison.CurrentCultureIgnoreCase);

0 commit comments

Comments
 (0)