Even if they were never used.
// Logs the user out and removes the credentials from the AniDB struct.
func (adb *AniDB) Logout() error {
// Logs the user out and removes the credentials from the AniDB struct.
func (adb *AniDB) Logout() error {
- if adb.udp.connected {
- adb.udp.credentials.shred()
- adb.udp.credentials = nil
+ adb.udp.credentials.shred()
+ adb.udp.credentials = nil
adb.udp.connected = false
return adb.udp.Logout()
}
adb.udp.connected = false
return adb.udp.Logout()
}