Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
Simplify expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
NullHypothesis committed Mar 23, 2024
1 parent f576ebf commit 1f4d7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func ToggleNAT(toggle bool) error {
}

f := t.AppendUnique
if toggle == Off {
if !toggle {
f = t.DeleteIfExists
}

Expand Down

0 comments on commit 1f4d7d7

Please sign in to comment.