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

Function tryGetUserByEmail

internal/route/repo/commit.go:112–115  ·  view source on GitHub ↗

tryGetUserByEmail returns a non-nil value if the email is corresponding to an existing user.

(ctx gocontext.Context, email string)

Source from the content-addressed store, hash-verified

110// tryGetUserByEmail returns a non-nil value if the email is corresponding to an
111// existing user.
112func tryGetUserByEmail(ctx gocontext.Context, email string) *database.User {
113 user, _ := database.Handle.Users().GetByEmail(ctx, email)
114 return user
115}
116
117func Diff(c *context.Context) {
118 c.PageIs("Diff")

Callers 2

DiffFunction · 0.85
renderDirectoryFunction · 0.85

Calls 2

GetByEmailMethod · 0.80
UsersMethod · 0.80

Tested by

no test coverage detected