Skip to content

Commit 3110e68

Browse files
authored
delete useless code for RemoveAzureRmExpressRouteConnection (#14362)
1 parent 930f309 commit 3110e68

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Network/Network/Cortex/ExpressRouteGateway/ExpressRouteConnection/RemoveAzureRmExpressRouteConnectionCommand.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,7 @@ public class RemoveExpressRouteConnectionCommand : ExpressRouteConnectionBaseCmd
7979

8080
public override void Execute()
8181
{
82-
if (ParameterSetName.Equals(CortexParameterSetNames.ByExpressRouteConnectionName, StringComparison.OrdinalIgnoreCase))
83-
{
84-
this.ResourceGroupName = this.ResourceGroupName;
85-
this.ExpressRouteGatewayName = this.ExpressRouteGatewayName;
86-
this.Name = this.Name;
87-
}
88-
else if (ParameterSetName.Equals(CortexParameterSetNames.ByExpressRouteConnectionObject, StringComparison.OrdinalIgnoreCase))
82+
if (ParameterSetName.Equals(CortexParameterSetNames.ByExpressRouteConnectionObject, StringComparison.OrdinalIgnoreCase))
8983
{
9084
this.ResourceId = this.InputObject.Id;
9185

0 commit comments

Comments
 (0)