(old, newVal T)
| 512 | } |
| 513 | |
| 514 | func immutabilityViolation[T comparable](old, newVal T) bool { |
| 515 | var empty T |
| 516 | if newVal == empty { |
| 517 | // No change |
| 518 | return false |
| 519 | } |
| 520 | return old != newVal |
| 521 | } |
| 522 | |
| 523 | //nolint:revive // active is not a control flag |
| 524 | func scimUserStatus(user database.User, active bool) database.UserStatus { |