From ec1844d6979923f03c12235c62e0b87727d5d919 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Mon, 5 Jan 2026 10:53:35 +0100 Subject: [PATCH] Style Signed-off-by: Bryan Frimin --- pkg/iam/scim/errors.go | 8 ++++++++ pkg/iam/scim/types.go | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/pkg/iam/scim/errors.go b/pkg/iam/scim/errors.go index d3763fcb8..598b754b7 100644 --- a/pkg/iam/scim/errors.go +++ b/pkg/iam/scim/errors.go @@ -89,3 +89,11 @@ func (e *ErrSCIMUserAlreadyExists) Error() string { func NewSCIMUserAlreadyExistsError(email string) *ErrSCIMUserAlreadyExists { return &ErrSCIMUserAlreadyExists{Email: email} } + +type ErrUnsupportedFilter struct { + Reason string +} + +func (e *ErrUnsupportedFilter) Error() string { + return fmt.Sprintf("unsupported filter: %s", e.Reason) +} diff --git a/pkg/iam/scim/types.go b/pkg/iam/scim/types.go index a8d4bcbee..e7b87cc17 100644 --- a/pkg/iam/scim/types.go +++ b/pkg/iam/scim/types.go @@ -27,15 +27,6 @@ type UserFilter struct { UserName *string } -// ErrUnsupportedFilter is returned when a SCIM filter uses unsupported operators or attributes -type ErrUnsupportedFilter struct { - Reason string -} - -func (e *ErrUnsupportedFilter) Error() string { - return fmt.Sprintf("unsupported filter: %s", e.Reason) -} - // ParseUserFilter converts a SCIM filter AST expression to a UserFilter. // Returns (nil, nil) if no filter is provided. // Returns an error if the filter uses unsupported operators or attributes.