api-go/internal/graphql_server/utils/get_me.go
Function GetMe
has 71 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func GetMe(id string) (*Me, error) {
config := GetConfig()
conn, err := grpc.NewClient(
config.DgraphHost+":"+config.DgraphGRPCPort,
grpc.WithUnaryInterceptor(apmgrpc.NewUnaryClientInterceptor()),
Function GetMe
has 7 return statements (exceeds 4 allowed). Open
Open
func GetMe(id string) (*Me, error) {
config := GetConfig()
conn, err := grpc.NewClient(
config.DgraphHost+":"+config.DgraphGRPCPort,
grpc.WithUnaryInterceptor(apmgrpc.NewUnaryClientInterceptor()),