Change emoji tests (Golang maps are not ordered)
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -91,9 +91,9 @@ func (s *EmojiService) Get(ctx context.Context, subreddit string) ([]*Emoji, []*
|
||||
defaultEmojis := root["snoomojis"]
|
||||
var subredditEmojis []*Emoji
|
||||
|
||||
for k := range root {
|
||||
for k, v := range root {
|
||||
if strings.HasPrefix(k, kindSubreddit) {
|
||||
subredditEmojis = root[k]
|
||||
subredditEmojis = v
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user