MCPcopy Index your code
hub / github.com/coder/coder / immutabilityViolation

Function immutabilityViolation

enterprise/coderd/scim.go:514–521  ·  view source on GitHub ↗
(old, newVal T)

Source from the content-addressed store, hash-verified

512}
513
514func 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
524func scimUserStatus(user database.User, active bool) database.UserStatus {

Callers 1

scimPutUserMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected