MCPcopy Create free account
hub / github.com/gogs/gogs / IsErrUserOwnRepos

Function IsErrUserOwnRepos

internal/database/users.go:368–370  ·  view source on GitHub ↗

IsErrUserOwnRepos returns true if the underlying error has the type ErrUserOwnRepos.

(err error)

Source from the content-addressed store, hash-verified

366// IsErrUserOwnRepos returns true if the underlying error has the type
367// ErrUserOwnRepos.
368func IsErrUserOwnRepos(err error) bool {
369 return errors.As(err, &ErrUserOwnRepos{})
370}
371
372func (err ErrUserOwnRepos) Error() string {
373 return fmt.Sprintf("user still has repository ownership: %v", err.args)

Callers 5

SettingsDeleteFunction · 0.92
SettingsDeleteFunction · 0.92
DeleteUserFunction · 0.92
DeleteUserFunction · 0.92
DeleteInactivatedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected