server/pkg/keyhelper/load_keys.go
Function LoadKeys
has 5 return statements (exceeds 4 allowed). Open
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)