cloudfoundry/cf-k8s-controllers

View on GitHub
tools/image/client.go

Summary

Maintainability
A
50 mins
Test Coverage

Method Client.Push has 12 return statements (exceeds 8 allowed).
Open

func (c Client) Push(ctx context.Context, creds Creds, repoRef string, zipReader io.Reader, tags ...string) (string, error) {
    tmpFile, err := os.CreateTemp(os.TempDir(), "sourceimg-%s")
    if err != nil {
        return "", fmt.Errorf("failed to create a temp file for image: %w", err)
    }
Severity: Major
Found in tools/image/client.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status