kevineaton/drs-sdk

View on GitHub
slot.go

Summary

Maintainability
A
35 mins
Test Coverage

Function ReportSlotStatus has 5 return statements (exceeds 4 allowed).
Open

func ReportSlotStatus(deviceToken string, slotID string, status *SlotStatus) (bool, error) {
    if deviceToken == "" || slotID == "" {
        return false, &APIError{
            Code: http.StatusBadRequest,
            Data: map[string]string{
Severity: Major
Found in slot.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status