diff options
author | rtz12 <koenig@fagott.pw> | 2016-11-13 02:53:05 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-11-13 02:53:05 (UTC) |
commit | c5adb9e0568d4915a8554189d8afa164ead67ac4 (patch) | |
tree | 836bd50f11746a3f438864b3cd880ff5a80f19e4 /user.go | |
parent | 1e92d1fd37d2fa2dd99e68082e224b8ed7d634fb (diff) |
Noch mal ein Nil-Check damit nicht alles stirbt ohne Anilist-Client
Diffstat (limited to 'user.go')
-rw-r--r-- | user.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -31,7 +31,7 @@ func (u *User) GetName() string { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | func (u *User) HasExternalServices() bool { | 33 | func (u *User) HasExternalServices() bool { |
34 | return u.AnilistClient.IsCoupled | 34 | return (u.AnilistClient != nil && u.AnilistClient.IsCoupled) |
35 | } | 35 | } |
36 | 36 | ||
37 | func (u *User) ExternalServices() []ExternalService { | 37 | func (u *User) ExternalServices() []ExternalService { |