style: gofmt IMS security policies (#44)

This commit is contained in:
Rain Seven
2026-08-17 00:14:42 +08:00
committed by GitHub
parent 04dd026e95
commit 6ec950bfd2
+2 -3
View File
@@ -534,7 +534,7 @@ func buildXFRMInstallPlan(config IPSecSAConfig) ([]xfrmOperation, error) {
for _, protocol := range flow.protocols {
operations = append(operations, xfrmOperation{
description: flow.description + " " + protocol + " policy",
arguments: xfrmPolicyArgs(flow, protocol, false),
arguments: xfrmPolicyArgs(flow, protocol, false),
})
}
}
@@ -550,7 +550,7 @@ func buildXFRMCleanupPlan(config IPSecSAConfig) []xfrmOperation {
protocol := flow.protocols[protocolIndex]
operations = append(operations, xfrmOperation{
description: "delete " + flow.description + " " + protocol + " policy",
arguments: xfrmPolicyArgs(flow, protocol, true),
arguments: xfrmPolicyArgs(flow, protocol, true),
})
}
}
@@ -579,7 +579,6 @@ func buildXFRMCleanupPlan(config IPSecSAConfig) []xfrmOperation {
return operations
}
func xfrmPolicyArgs(flow xfrmFlow, protocol string, delete bool) []string {
args := []string{
flow.family,