api-go/internal/graphql_server/utils/get_user_by_email.go
Function GetUserByEmail
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func GetUserByEmail(email string) (*types.User, error) {
config := GetConfig()
conn, err := grpc.NewClient(
config.DgraphHost+":"+config.DgraphGRPCPort,
grpc.WithUnaryInterceptor(apmgrpc.NewUnaryClientInterceptor()),
Function GetUserByEmail
has 5 return statements (exceeds 4 allowed). Open
Open
func GetUserByEmail(email string) (*types.User, error) {
config := GetConfig()
conn, err := grpc.NewClient(
config.DgraphHost+":"+config.DgraphGRPCPort,
grpc.WithUnaryInterceptor(apmgrpc.NewUnaryClientInterceptor()),