Skip to content

Commit

Permalink
Fixing gocritic
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Pearce authored and manicminer committed Jul 14, 2020
1 parent 554b562 commit 8f0e73e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,8 @@ func resourceArmExpressRouteCircuitPeeringCreateUpdate(d *schema.ResourceData, m
ID: utils.String(route_filter_id),
}
}
} else {
if route_filter_id != "" {
return fmt.Errorf("`route_filter_id` may only be specified when `peering_type` is set to `MicrosoftPeering`")
}
} else if route_filter_id != "" {
return fmt.Errorf("`route_filter_id` may only be specified when `peering_type` is set to `MicrosoftPeering`")
}

future, err := client.CreateOrUpdate(ctx, resourceGroup, circuitName, peeringType, parameters)
Expand Down

0 comments on commit 8f0e73e

Please sign in to comment.