diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/gtsmodel/interactionpolicy.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/gtsmodel/interactionpolicy.go b/internal/gtsmodel/interactionpolicy.go index 4fa5f4d8e..a7455a108 100644 --- a/internal/gtsmodel/interactionpolicy.go +++ b/internal/gtsmodel/interactionpolicy.go @@ -244,6 +244,12 @@ func (pr1 *PolicyRules) DifferentFrom(pr2 *PolicyRules) bool { return true } + // If they're both nil we don't + // need to check anything else. + if pr1 == nil && pr2 == nil { + return false + } + // Check if AutomaticApproval // differs between the two. if slices.Compare( |
