Complete unfinished comment

This commit is contained in:
Brendan Abolivier 2017-09-01 13:11:46 +01:00
parent a4a11c7235
commit 7895c364df
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -166,7 +166,9 @@ func PublishAssociation(creds Credentials, userID string, cfg config.Dendrite) e
return nil return nil
} }
// isTrusted checks if a given identity server is // isTrusted checks if a given identity server is part of the list of trusted
// identity servers in the configuration file.
// Returns an error if the server isn't trusted.
func isTrusted(idServer string, cfg config.Dendrite) error { func isTrusted(idServer string, cfg config.Dendrite) error {
for _, server := range cfg.Matrix.TrustedIDServers { for _, server := range cfg.Matrix.TrustedIDServers {
if idServer == server { if idServer == server {