Skip to content

Commit 4e5324a

Browse files
committed
Undoing the last commit because it can't be fixed in that way
1 parent 51cdbea commit 4e5324a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJobDetails.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,6 @@ public override void ExecuteCmdlet()
5050

5151
ExecutionBlock(() =>
5252
{
53-
if (JobID != null)
54-
{
55-
if ((JobID is PSObject) && (((PSObject)JobID).ImmediateBaseObject is string))
56-
{
57-
JobID = ((PSObject)JobID).ImmediateBaseObject.ToString();
58-
}
59-
else if (JobID is string)
60-
{
61-
// nothing to do
62-
}
63-
else
64-
{
65-
throw new Exception("JobID should be of the type string. Please input a string.");
66-
}
67-
}
6853
if (Job != null)
6954
{
7055
JobID = Job.InstanceId;

0 commit comments

Comments
 (0)