Skip to content

Commit dd20ff8

Browse files
committed
fix: improve code formatting and indentation
- Fix indentation in egress firewall rule parameter validation - Ensure consistent code formatting across the codebase - No functional changes, only formatting improvements
1 parent d0438d8 commit dd20ff8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cloudstack/resource_cloudstack_egress_firewall.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -772,12 +772,12 @@ func verifyEgressFirewallRuleParams(d *schema.ResourceData, rule map[string]inte
772772

773773
if protocol == "icmp" {
774774
if _, ok := rule["icmp_type"]; !ok {
775-
return fmt.Errorf(
776-
"parameter icmp_type is a required parameter when using protocol 'icmp'")
775+
return fmt.Errorf(
776+
"parameter icmp_type is a required parameter when using protocol 'icmp'")
777777
}
778778
if _, ok := rule["icmp_code"]; !ok {
779-
return fmt.Errorf(
780-
"parameter icmp_code is a required parameter when using protocol 'icmp'")
779+
return fmt.Errorf(
780+
"parameter icmp_code is a required parameter when using protocol 'icmp'")
781781
}
782782
} else if strings.ToLower(protocol) != "all" {
783783
if ports, ok := rule["ports"].(*schema.Set); ok {
@@ -793,8 +793,8 @@ func verifyEgressFirewallRuleParams(d *schema.ResourceData, rule map[string]inte
793793
// When omitted, the rule will encompass all ports
794794
} else if strings.ToLower(protocol) == "all" {
795795
if ports, _ := rule["ports"].(*schema.Set); ports.Len() > 0 {
796-
return fmt.Errorf(
797-
"parameter ports is not required when using protocol 'ALL'")
796+
return fmt.Errorf(
797+
"parameter ports is not required when using protocol 'ALL'")
798798
}
799799
}
800800

0 commit comments

Comments
 (0)