Skip to content

Commit

Permalink
Formatting files
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanderwaal-iqmessenger committed Mar 14, 2024
1 parent 1d06c0e commit 04b698d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_policy_nat_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func policyBasedVpnModeNeeded(action string) bool {
func getPolicyBasedVpnMode(rule model.PolicyNatRule) (*string, error) {
pbvmMatch := rule.PolicyBasedVpnMode
action := rule.Action
if pbvmMatch != nil && ! policyBasedVpnModeNeeded(*action) {
if pbvmMatch != nil && !policyBasedVpnModeNeeded(*action) {
return pbvmMatch, fmt.Errorf("Invalid NAT rule action %s for policy based vpn mode %s. policy based vpn mode supported only on DNAT/NO_DNAT rule.", *action, *pbvmMatch)

Check warning on line 241 in nsxt/resource_nsxt_policy_nat_rule.go

View workflow job for this annotation

GitHub Actions / lint

error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
}
return pbvmMatch, nil
Expand Down

0 comments on commit 04b698d

Please sign in to comment.