Commit 334f7f59 authored by David Venhoek's avatar David Venhoek
Browse files

Fixed UpdateSchemes to actually initialize updated variable as required by UpdateSchemeManager.

parent db2b06f4
......@@ -1245,7 +1245,11 @@ func (conf *Configuration) UpdateSchemeManager(id SchemeManagerIdentifier, downl
}
func (conf *Configuration) UpdateSchemes() error {
var updated IrmaIdentifierSet
updated := &IrmaIdentifierSet{
SchemeManagers: map[SchemeManagerIdentifier]struct{}{},
Issuers: map[IssuerIdentifier]struct{}{},
CredentialTypes: map[CredentialTypeIdentifier]struct{}{},
}
for id := range conf.SchemeManagers {
Logger.WithField("scheme", id).Info("Auto-updating scheme")
if err := conf.UpdateSchemeManager(id, &updated); err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment