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

Method mustOwner

internal/database/repo.go:436–445  ·  view source on GitHub ↗
(e Engine)

Source from the content-addressed store, hash-verified

434}
435
436func (r *Repository) mustOwner(e Engine) *User {
437 if err := r.getOwner(e); err != nil {
438 return &User{
439 Name: "error",
440 FullName: err.Error(),
441 }
442 }
443
444 return r.Owner
445}
446
447func (r *Repository) UpdateSize() error {
448 countObject, err := git.CountObjects(r.RepoPath())

Callers 3

MustOwnerMethod · 0.95
repoPathMethod · 0.95
prepareWebhooksFunction · 0.80

Implementers 2

Repositoryinternal/database/repo.go
mailerRepointernal/database/issue_mail.go

Calls 2

getOwnerMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected