Return bool when type casting, include trophies in thing struct
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
+2
-1
@@ -134,7 +134,8 @@ func (s *SubredditService) Get(ctx context.Context, name string) (*Subreddit, *R
|
||||
return nil, resp, err
|
||||
}
|
||||
|
||||
return root.Subreddit(), resp, nil
|
||||
sr, _ := root.Subreddit()
|
||||
return sr, resp, nil
|
||||
}
|
||||
|
||||
// Popular returns popular subreddits.
|
||||
|
||||
Reference in New Issue
Block a user