Add scans with gosec

This commit is contained in:
eikendev 2022-02-13 15:06:54 +01:00
parent 56f39cf64c
commit 5cd3627dc6
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
8 changed files with 47 additions and 12 deletions

View file

@ -44,7 +44,11 @@ func Create(homeserver, username, password string, formatting configuration.Form
func (d *Dispatcher) Close() {
log.Printf("Logging out.")
d.client.Logout()
_, err := d.client.Logout()
if err != nil {
log.Printf("Error while logging out: %s", err)
}
d.client.ClearCredentials()
log.Printf("Successfully logged out.")