go/zeusmaster/zeusmaster.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func buildFileMonitor(fileChangeDelay time.Duration) (filemonitor.FileMonitor, error) {
    if portStr := os.Getenv(listenerPortVar); portStr != "" {
        port, err := strconv.Atoi(portStr)
        if err != nil {
            return nil, fmt.Errorf("%s must be an integer or empty string: %v", listenerPortVar, err)
Severity: Major
Found in go/zeusmaster/zeusmaster.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status