Skip to content

Commit e6cc59f

Browse files
committed
fix: remove unused writeSCIMError function to resolve staticcheck U1000 error
1 parent c311d49 commit e6cc59f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

internal/api/scim.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,6 @@ func (a *API) scimNotFound() error { return apiNoopError{} }
361361
type apiNoopError struct{}
362362
func (apiNoopError) Error() string { return "noop" }
363363

364-
func writeSCIMError(w http.ResponseWriter, status int, detail string) error {
365-
return scimSendJSON(w, status, map[string]any{
366-
"schemas": []string{"urn:ietf:params:scim:api:messages:2.0:Error"},
367-
"detail": detail,
368-
"status": strconv.Itoa(status),
369-
})
370-
}
371-
372364
func scimSendJSON(w http.ResponseWriter, status int, obj any) error {
373365
w.Header().Set("Content-Type", "application/scim+json")
374366
b, err := json.Marshal(obj)

0 commit comments

Comments
 (0)