sue445/gcp-secretmanagerenv

View on GitHub
client.go

Summary

Maintainability
A
40 mins
Test Coverage

Method Client.GetValueFromEnvOrSecretManager has 6 return statements (exceeds 4 allowed).
Open

func (c *Client) GetValueFromEnvOrSecretManager(key string, required bool) (string, error) {
    if os.Getenv(key) != "" {
        return strings.TrimSpace(os.Getenv(key)), nil
    }

Severity: Major
Found in client.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status