fix(NPC): remove redundant assign

This commit is contained in:
Aaron U'Ren 2023-09-16 13:03:01 -05:00 committed by Aaron U'Ren
parent b06b4f05c3
commit 301e856a92

View File

@ -253,7 +253,6 @@ func (npc *NetworkPolicyController) fullPolicySync() {
} }
for ipFamily, iptablesSaveRestore := range npc.iptablesSaveRestore { for ipFamily, iptablesSaveRestore := range npc.iptablesSaveRestore {
ipFamily := ipFamily
npc.filterTableRules[ipFamily].Reset() npc.filterTableRules[ipFamily].Reset()
saveStart := time.Now() saveStart := time.Now()
err := iptablesSaveRestore.SaveInto("filter", npc.filterTableRules[ipFamily]) err := iptablesSaveRestore.SaveInto("filter", npc.filterTableRules[ipFamily])