mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2023-10-21 07:33:40 -05:00
Fix various issues found by golangci-lint.
This commit is contained in:
@@ -103,7 +103,7 @@ func (t *tokensStatic) load(config *goconf.ConfigFile, ignoreErrors bool) error
|
||||
log.Printf("No token keys loaded")
|
||||
} else {
|
||||
var keyIds []string
|
||||
for k, _ := range tokenKeys {
|
||||
for k := range tokenKeys {
|
||||
keyIds = append(keyIds, k)
|
||||
}
|
||||
sort.Strings(keyIds)
|
||||
@@ -114,7 +114,9 @@ func (t *tokensStatic) load(config *goconf.ConfigFile, ignoreErrors bool) error
|
||||
}
|
||||
|
||||
func (t *tokensStatic) Reload(config *goconf.ConfigFile) {
|
||||
t.load(config, true)
|
||||
if err := t.load(config, true); err != nil {
|
||||
log.Printf("Error reloading static tokens: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
func (t *tokensStatic) Close() {
|
||||
|
||||
Reference in New Issue
Block a user