server/pkg/keyhelper/load_keys.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func LoadKeys(r io.Reader, passphrase []byte) ([]*data.PrivateKey, error) {
    pk := &PersistedKeys{}

    if err := json.NewDecoder(r).Decode(pk); err != nil {
        return nil, fmt.Errorf("error unmarshalling keys json data: %w", err)
Severity: Major
Found in server/pkg/keyhelper/load_keys.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status