timoth-y/kicksware-api

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

Summary

Maintainability
A
40 mins
Test Coverage

Method Handler.DeleteOrder has 6 return statements (exceeds 4 allowed).
Open

func (h *Handler) DeleteOrder(ctx context.Context, filter *proto.OrderFilter) (resp *proto.OrderResponse, err error) {
    orderIDs := filter.OrderID; orderID := orderIDs[0]; if len(orderIDs) == 0 || len(orderID) == 0 {
        return nil, business.ErrOrderNotFound
    }

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

    There are no issues that match your filters.

    Category
    Status