timoth-y/kicksware-api

View on GitHub
services/products/api/gRPC/handler.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Handler.UploadImages has 5 return statements (exceeds 4 allowed).
Open

func (h *Handler) UploadImages(ctx context.Context, input *proto.UploadImageRequest) (*proto.ProductResponse, error) {
    productID := input.ProductID; if len(input.ProductID) == 0 {
        return nil, status.Error(codes.InvalidArgument, business.ErrProductNotFound.Error())
    }

Severity: Major
Found in services/products/api/gRPC/handler.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status